public <T> T getLocalObject( String name, Class<T> type ) {
        local.lock.readLock().lock();
        try {
            return type.cast(local.byName.get(name).object);
        } finally {
            local.lock.readLock().unlock();
        }
    }
Returns a local object that was previously registered with share() using
 name registration.
jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiRegistry.java