naming/src/main/java/org/jboss/as/naming/InMemoryNamingStore.java
public void rebind(Name name, Object object) throws NamingException {
        rebind(name, object, object.getClass());
    }
public void rebind(Name name, Object object) throws NamingException {
        rebind(name, object, object.getClass());
    }
{@inheritDoc}