code: private static PropertyDescriptor[] getPropertyDescriptors(Object bean)
     {
         if(bean == null)
             throw new IllegalArgumentException("No bean specified");
         else
             return getPropertyDescriptors(bean.getClass());
     }
docs: ---------------------------------------------------------------------