/** Open up what is done so clients can provide a context callback */ public void execute(ContextCallback cc) throws NamingException { Context ctx = null; try { ctx = contextFactory.getContext(); cc.doInContext(ctx); } // catch (NamingException ex) { // throw new NamingException(("Couldn't bind JNDI object to name [" + name + "]", ex); // } finally { try { if (ctx != null) ctx.close(); } catch (NamingException ex) { // } } } // execute