iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/CorbaNamingContext.java
private void readObject(ObjectInputStream in) throws Exception {
        in.defaultReadObject();

        /**
         * Recreate tables. For serialization, object references have been transformed into strings
         */
        for (Name key : this.contexts.keySet()) {
            String ref = (String) this.contexts.remove(key);
            this.contexts.put(key, orb.string_to_object(ref));
        }

        for (Name key : this.names.keySet()) {
            String ref = (String) this.names.remove(key);
            this.names.put(key, orb.string_to_object(ref));
        }
    }
private void readObject(ObjectInputStream in) throws Exception {
        in.defaultReadObject();

        /**
         * Recreate tables. For serialization, object references have been transformed into strings
         */
        for (Name key : this.contexts.keySet()) {
            String ref = (String) this.contexts.remove(key);
            this.contexts.put(key, orb.string_to_object(ref));
        }

        for (Name key : this.names.keySet()) {
            String ref = (String) this.names.remove(key);
            this.names.put(key, orb.string_to_object(ref));
        }
    }
<p>
Overrides readObject in Serializable.
</p>

@param in the {@code InputStream} used to read the objects.
@throws Exception if an error occurs while reading the objects from the stream.