public static Method getValueOfMethod ( Class < ? > type ) { try { return type . getMethod ( CoreConstants . VALUE_OF , STING_CLASS_PARAMETER ) ; } catch ( NoSuchMethodException e ) { return null ; } catch ( SecurityException e ) { return null ; } }
returned value may be null and in most cases it is null .