src/main/java/org/jboss/util/naming/Util.java
public static Context createSubcontext(Context ctx, String name) throws NamingException
   {
      Name n = ctx.getNameParser("").parse(name);
      return createSubcontext(ctx, n);
   }
public static Context createSubcontext(Context ctx, String name) throws NamingException
   {
      Name n = ctx.getNameParser("").parse(name);
      return createSubcontext(ctx, n);
   }
public static Context createSubcontext ( Context ctx , String name ) throws NamingException { Name n = ctx . getNameParser ( "" ) . parse ( name ) ; return createSubcontext ( ctx , n ) ; }
Create a subcontext including any intermediate contexts.
@param ctx the parent JNDI Context under which value will be bound
@param name the name relative to ctx of the subcontext.
@return The new or existing JNDI subcontext
@throws javax.naming.NamingException on any JNDI failure
Create a subcontext including any intermediate contexts .