private ILogSessionRemote getLogSessionBean() throws RemoteException {
private ILogSessionRemote getLogSessionBean() {
    private ILogSessionRemote getLogSessionBean() throws RemoteException {      if(logsession == null){        try{          jndicontext = new InitialContext();          ILogSessionHome logsessionhome = (ILogSessionHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("LogSession"),ILogSessionHome.class);          logsession = logsessionhome.create();        }catch(Exception e){           throw new EJBException(e.getMessage());        }      }      return logsession;    }