protected static PropertyDescriptor[] introspect(Class clazz){
  BeanInfo beanInfo;
  try {
    beanInfo=Introspector.getBeanInfo(clazz);
  }
 catch (  IntrospectionException e) {
    return (new PropertyDescriptor[0]);
  }
  return beanInfo.getPropertyDescriptors();
}

protected static PropertyDescriptor [ ] introspect ( Class clazz ) { BeanInfo beanInfo ; try { beanInfo = Introspector . getBeanInfo ( clazz ) ; } catch ( IntrospectionException e ) { return ( new PropertyDescriptor [ 0 ] ) ; } return beanInfo . getPropertyDescriptors ( ) ; }
using the java introspector class the method returns the property descriptors obtained through introspection .
