return events.get(code);
}
}
private String logString(Phase phase, LoggingLocation location, InstanceLifecycleEvent event) {
final PersistenceCapable pojo = Utils.persistenceCapableFor(event);
final AdapterManager adapterManager = getAdapterManager();
final ObjectAdapter adapter = adapterManager.getAdapterFor(pojo);
return phase + " " + location.prefix + " " + LifecycleEventType.lookup(event.getEventType()) + ": oid=" + (adapter !=null? adapter.getOid(): "(null)") + " ,pojo " + pojo;
}