try {
Integer primKey = (Integer)customer.getPrimaryKey();
javax.naming.Context jndiContext = new InitialContext();
CustomerHomeLocal home = (CustomerHomeLocal)
jndiContext.lookup("java:comp/env/ejb/CustomerHomeLocal"); // get local interface
CustomerLocal custL = home.findByPrimaryKey(primKey);
// Our bean has many customers, use the cmr set method here..
Set customers = new HashSet();
customers.add(custL);
this.setCustomers(customers);
} catch (RemoteException re) {