tx = s.beginTransaction( );
/* Make sure that the user-id is unique */
try
{
Customer c = ( Customer ) s.load( Customer.class, customerId );
if ( !c.getUserId( ).equalsIgnoreCase( _customer.getUserId( ) ) )
{
addError( "customer", getText( "duplicate_account" ) );