// log.info("Env = " + env);
// Context ctx = new InitialContext(env);
// ctx.bind(NAME, VALUE);
Naming namingServer = naming.getNamingInstance();
namingServer.bind(parser.parse(NAME),
new MarshalledValuePair(VALUE),
VALUE.getClass().getName());
log.info("Bound " + VALUE + " to " + namingServer + " under " + NAME);
Context sub = namingServer.createSubcontext(parser.parse(SUBCONTEXT_NAME));
sub.bind(parser.parse(NAME), VALUE);