protected void doDeactivate()

in src/main/java/org/apache/sling/jcr/registration/impl/RmiRegistrationSupport.java [137:150]


    protected void doDeactivate() {
        // if we have a private RMI registry, unexport it here to free
        // the RMI registry OID
        if (this.registry != null && this.registryIsPrivate) {
            try {
                UnicastRemoteObject.unexportObject(this.registry, true);
                logger.info("Unexported private RMI Registry at {}", this.registryPort);
            } catch (NoSuchObjectException nsoe) {
                // not expected, but don't really care either
                logger.info("Cannot unexport private RMI Registry reference", nsoe);
            }
        }
        this.registry = null;
    }