code: public void addObjectId( Object object, ObjectIdSerializer<?> id ) {
          if ( null == mapObjectId ) {
              if ( useEqualityForObjectId ) {
                  mapObjectId = new HashMap<Object, ObjectIdSerializer<?>>();
              } else {
                  mapObjectId = new IdentityHashMap<Object, ObjectIdSerializer<?>>();
              }
          }
          mapObjectId.put( object, id );
      }
docs: <p>addObjectId</p>
  
  @param object a {@link java.lang.Object} object.
  @param id a {@link com.github.nmorel.gwtjackson.client.ser.bean.ObjectIdSerializer} object.