private boolean customerExists(String customerId) {
Debug.print("AccountControllerBean customerExists");
CustomerHome customerHome;
try {
customerHome = EJBGetter.getCustomerHome();
} catch (Exception ex) {
throw new EJBException("customerExists: " +
ex.getMessage());
}
try {
customerHome.findByPrimaryKey(customerId);
return true;
} catch (Exception ex) {
return false;
}