question: private Class readValue ( Type type , NodeMap node ) throws Exception { Node entry = node . remove ( label ) ; Class expect = type . getType ( ) ; if ( expect . isArray ( ) ) { expect = expect . getComponentType ( ) ; } if ( entry != null ) { String name = entry . getValue ( ) ; expect = loader . load ( name ) ; } return expect ; }
target:  This is used to resolve and load a class for the given element. Resolution of the class to used is done by inspecting the XML element provided. If there is a "class" attribute on the element then its value is used to resolve the class to use. If no such attribute exists the specified field is returned, or if the field type is an array then the component type.