throw new EJBException("Cannot lookup IDManager: " +e);
throw new RemoteException("Cannot lookup IDManager: " +e);
  public CategoryPK ejbCreate(String categoryName) throws CreateException, RemoteException, RemoveException  {      // Connecting to IDManager Home interface thru JNDI      IDManagerHome home = null;      IDManager idManager = null;            try       {        InitialContext initialContext = new InitialContext();        home = (IDManagerHome)PortableRemoteObject.narrow(initialContext.lookup(               "java:comp/env/ejb/IDManager"), IDManagerHome.class);      }       catch (Exception e)      {        throw new EJBException("Cannot lookup IDManager: " +e);      }     try       {        IDManagerPK idPK = new IDManagerPK();        idManager = home.findByPrimaryKey(idPK);        id = idManager.getNextCategoryID();        name = categoryName;      }       catch (Exception e)      {        throw new EJBException("Cannot create category: " +e);      }      return null;   }