login();
Object obj = getInitialContext().lookup("spec.StatelessSession");
obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class);
StatelessSessionHome home = (StatelessSessionHome) obj;
log.debug("Found StatelessSessionHome");
StatelessSession bean = home.create();
log.debug("Created spec.StatelessSession");
Handle h = bean.getHandle();
log.debug("Obtained handle: " + h);
bean = (StatelessSession) h.getEJBObject();
log.debug("Obtained bean from handle: " + bean);