public GraphObject getGraphObject ( Object obj ) { String key = getKey ( obj ) ; GraphObject go = objectMap . get ( key ) ; // if (obj instanceof Conversion && go == null) // { // go = objectMap.get(key + ConversionWrapper.LEFT_TO_RIGHT); // if (go == null) // go = objectMap.get(key + ConversionWrapper.RIGHT_TO_LEFT); // } if ( go == null ) { Node node = wrap ( obj ) ; if ( node != null ) { objectMap . put ( key , node ) ; node . init ( ) ; } } return objectMap . get ( key ) ; }
Gets the related wrapper for the given object creates the wrapper if not created before .