public void resolve(Class type,String value) throws Exception {
  String name=type.getName();
  read.put(value,name);
  write.put(name,value);
}

public void resolve ( Class type , String value ) throws Exception { String name = type . getName ( ) ; read . put ( value , name ) ; write . put ( name , value ) ; }
here we are inserting an alias for a type . each time the specified type is written the provided name is used and each time the name is found on reading it is substituted for the type so that it can be interpreted correctly .
