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;
}

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 ; }
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 .
