public static void rebind ( final Context ctx , final String name , final Object value ) throws NamingException { final Name n = ctx . getNameParser ( "" ) . parse ( name ) ; rebind ( ctx , n , value ) ; }
Rebind val to name in ctx and make sure that all intermediate contexts exist