{
bean12 = home2.create(key1, "testEntityIdentity");
}
catch(DuplicateKeyException e)
{
bean12 = home2.findByPrimaryKey(key1);
}
boolean isIdentical = false;
isIdentical = bean1.isIdentical(bean1);
log.debug(bean1+" isIdentical to "+bean1+" = "+isIdentical);