@ SuppressWarnings ( "unchecked" ) public static < T > T lookup ( String name ) { try { return ( T ) new InitialContext ( ) . lookup ( name ) ; } catch ( NamingException e ) { throw new IllegalStateException ( e ) ; } }
Get the named object in the starting context .