question: public Value read ( Type type , NodeMap node , Map map ) throws Exception { Class actual = readValue ( type , node ) ; Class expect = type . getType ( ) ; if ( expect . isArray ( ) ) { return readArray ( actual , node ) ; } if ( expect != actual ) { return new ObjectValue ( actual ) ; } return null ; }
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 on the element this returns null.