naming/src/main/java/org/jboss/as/naming/util/NamingUtils.java
public static NameNotFoundException nameNotFoundException(final String name, final Name contextName) {
        return NamingLogger.ROOT_LOGGER.nameNotFoundInContext(name, contextName);
    }
public static NameNotFoundException nameNotFoundException(final String name, final Name contextName) {
        return NamingLogger.ROOT_LOGGER.nameNotFoundInContext(name, contextName);
    }
public static NameNotFoundException nameNotFoundException ( final String name , final Name contextName ) { return NamingLogger . ROOT_LOGGER . nameNotFoundInContext ( name , contextName ) ; }
Create a name-not-found exception.

@param name the name
@param contextName the context name
@return the exception
Create a name - not - found exception .