protected PropertyEditor getPropertyEditor ( PropertyDescriptor desc ) throws ReflectiveOperationException { Class < ? > cls = desc . getPropertyEditorClass ( ) ; if ( null != cls ) { return ( PropertyEditor ) cls . getConstructor ( ) . newInstance ( ) ; } return getPropertyEditorValue ( desc . getPropertyType ( ) ) ; }
Attempt to find custom property editor on descriptor first else try the propery editor manager .