public OBinarySerializer < ? > getObjectSerializer ( final byte identifier ) { OBinarySerializer < ? > impl = serializerIdMap . get ( identifier ) ; if ( impl == null ) { final Class < ? extends OBinarySerializer < ? > > cls = serializerClassesIdMap . get ( identifier ) ; if ( cls != null ) try { impl = cls . newInstance ( ) ; } catch ( Exception e ) { OLogManager . instance ( ) . error ( this , "Cannot create an instance of class %s invoking the empty constructor" , cls ) ; } } return impl ; }
Obtain OBinarySerializer instance by it s id .