try{
Context ctx =
new InitialContext(jndi_properties);
CabinHome home =
(CabinHome) ctx.lookup(home_name);
return home.findByPrimaryKey(primary_key);
}catch(javax.ejb.FinderException fe){
throw new RemoteException(
"Cannot locate EJB object",fe);
}catch(javax.naming.NamingException ne){
throw new RemoteException(
"Cannot locate EJB object",ne);
}