public static void registerConverter(JavaTypeConverter theConverter){
  Class<?> targetType=theConverter.getTargetType();
  Class<?> sourceType=theConverter.getSourceType();
  Hashtable<Class<?>,JavaTypeConverter> innerTable=m_converters.get(targetType);
  if (innerTable != null) {
    innerTable.put(sourceType,theConverter);
  }
 else {
    innerTable=new Hashtable<Class<?>,JavaTypeConverter>(10);
    innerTable.put(sourceType,theConverter);
    m_converters.put(targetType,innerTable);
  }
}

public static void registerConverter ( JavaTypeConverter theConverter ) { Class < ? > targetType = theConverter . getTargetType ( ) ; Class < ? > sourceType = theConverter . getSourceType ( ) ; Hashtable < Class < ? > , JavaTypeConverter > innerTable = m_converters . get ( targetType ) ; if ( innerTable != null ) { innerTable . put ( sourceType , theConverter ) ; } else { innerTable = new Hashtable < Class < ? > , JavaTypeConverter > ( 10 ) ; innerTable . put ( sourceType , theConverter ) ; m_converters . put ( targetType , innerTable ) ; } }
this method may be used to register a converter with the javatypetranslator . any converter which has previously been registered with the javatypetranslator that has the same source and target types will be replaced and the new converter being registered will be used for those types instead .
