naming/src/main/java/org/jboss/as/naming/NamingContext.java
public Context createSubcontext(Name name) throws NamingException {
        check(name, JndiPermission.ACTION_CREATE_SUBCONTEXT);

        if(namingStore instanceof WritableNamingStore) {
            final Name absoluteName = getAbsoluteName(name);
            return getWritableNamingStore().createSubcontext(absoluteName);
        } else {
            throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext();
        }
    }
public Context createSubcontext(Name name) throws NamingException {
        check(name, JndiPermission.ACTION_CREATE_SUBCONTEXT);

        if(namingStore instanceof WritableNamingStore) {
            final Name absoluteName = getAbsoluteName(name);
            return getWritableNamingStore().createSubcontext(absoluteName);
        } else {
            throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext();
        }
    }
{@inheritDoc}