@ Pure public static Class < ? > getAttributeClassWithDefault ( Node document , boolean caseSensitive , Class < ? > defaultValue , String ... path ) { assert document != null : AssertMessages . notNullParameter ( 0 ) ; final String v = getAttributeValue ( document , caseSensitive , 0 , path ) ; if ( v != null && ! v . isEmpty ( ) ) { try { final ClassLoader loader = ClassLoaderFinder . findClassLoader ( ) ; return loader . loadClass ( v ) ; } catch ( Throwable e ) { // } } return defaultValue ; }
Read a java class .