iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/rmi/ir/IRObjectImpl.java
protected org.omg.CORBA.Object servantToReference(Servant servant) {
        byte[] id = getObjectId();

        try {
            repository.poa.activate_object_with_id(id, servant);
            org.omg.CORBA.Object ref = repository.poa.id_to_reference(id);
            return ref;
        } catch (WrongPolicy ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ServantAlreadyActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ObjectAlreadyActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ObjectNotActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        }
        return null;
    }
protected org.omg.CORBA.Object servantToReference(Servant servant) {
        byte[] id = getObjectId();

        try {
            repository.poa.activate_object_with_id(id, servant);
            org.omg.CORBA.Object ref = repository.poa.id_to_reference(id);
            return ref;
        } catch (WrongPolicy ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ServantAlreadyActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ObjectAlreadyActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        } catch (ObjectNotActive ex) {
            IIOPLogger.ROOT_LOGGER.debug("Exception converting CORBA servant to reference", ex);
        }
        return null;
    }
Convert a servant to a reference.