public static PropertyDescriptor[] getPropertyDescriptors(Class clazz) throws AppException {
BeanInfo beanInfo = null;
try {
beanInfo = Introspector.getBeanInfo(clazz);
} catch (IntrospectionException e) {
throw new AppException("Can not get bean info!");
}
return beanInfo.getPropertyDescriptors();
}