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

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