pojo/src/main/java/org/jboss/as/pojo/descriptor/AbstractConfigVisitorNode.java
protected static Class<?> getType(ConfigVisitor visitor, String className) {
        if (className != null) {
            try {
                return visitor.getModule().getClassLoader().loadClass(className);
            } catch (Exception e) {
                throw new IllegalArgumentException(e);
            }
        }
        return null;
    }
protected static Class<?> getType(ConfigVisitor visitor, String className) {
        if (className != null) {
            try {
                return visitor.getModule().getClassLoader().loadClass(className);
            } catch (Exception e) {
                throw new IllegalArgumentException(e);
            }
        }
        return null;
    }
protected static Class < ? > getType ( ConfigVisitor visitor , String className ) { if ( className != null ) { try { return visitor . getModule ( ) . getClassLoader ( ) . loadClass ( className ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( e ) ; } } return null ; }
Load class.

@param visitor   the visitor
@param className the class name
@return class or null if null class name
Load class .