naming/src/main/java/org/jboss/as/naming/NamingContext.java
public Object addToEnvironment(String propName, Object propVal) throws NamingException {
        final Object existing = environment.get(propName);
        environment.put(propName, propVal);
        return existing;
    }
public Object addToEnvironment(String propName, Object propVal) throws NamingException {
        final Object existing = environment.get(propName);
        environment.put(propName, propVal);
        return existing;
    }
public Object addToEnvironment ( String propName , Object propVal ) throws NamingException { final Object existing = environment . get ( propName ) ; environment . put ( propName , propVal ) ; return existing ; }
{@inheritDoc}
{