{
return (IdentityObject) cache.get(entity);
}
else
{
IdentityObject obj = new IdentityObjectImpl(
identityIdProperty.getValue(entity).toString(),
identityNameProperty.getValue(entity).toString(),
convertToIdentityObjectType(identityTypeProperty.getValue(entity)));
cache.put(entity, obj);