AmberEntityHome entityHome;
entityHome = _persistenceUnit.getEntityHome(entity.getClass().getName());
if (entityHome == null)
throw new AmberException(L.l("{0}: entity has no matching home",
entity.getClass().getName()));
entityHome.makePersistent(entity, this, false);
return entity;