107108109110111112113114115116117
InitialContext ctx = null; try { ctx = new InitialContext(); final RestHttp rest = (RestHttp) ctx.lookup(REST_HTTP); if (rest == null) { throw new Exception("null from JNDI for RestHttp (?)"); }