code: private static void bind(Context ctx, Name name, Object value) throws NamingException
     {
        int size = name.size();
        String atom = name.get(size - 1);
        Context parentCtx = createSubcontext(ctx, name.getPrefix(size - 1));
        parentCtx.bind(atom, value);
     }
docs: Bind val to name in ctx, and make sure that all intermediate contexts exist
  @param ctx the parent JNDI Context under which value will be bound
  @param name the name relative to ctx where value will be bound
  @param value the value to bind.
  @throws NamingException for any error