iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNCtx.java
public java.lang.Object addToEnvironment(String propName,
                                             java.lang.Object propValue)
            throws NamingException {
        if (_env == null) {
            _env = new Hashtable(7, 0.75f);
        } else {
            // copy-on-write
            _env = (Hashtable) _env.clone();
        }

        return _env.put(propName, propValue);
    }
public java.lang.Object addToEnvironment(String propName,
                                             java.lang.Object propValue)
            throws NamingException {
        if (_env == null) {
            _env = new Hashtable(7, 0.75f);
        } else {
            // copy-on-write
            _env = (Hashtable) _env.clone();
        }

        return _env.put(propName, propValue);
    }
Adds to the environment for the current context.
Record change but do not reinitialize ORB.

@param propName The property name.
@param propValue  The ORB.
@return the previous value of this property if any.