boolean syncRegistered = false;
synchronized (lock) {
//if the previous transaction was rolled back we re-load the entity bean state in the current TX
if(instance.isReloadRequired()) {
instance.reload();
}
if (ROOT_LOGGER.isTraceEnabled()) {
ROOT_LOGGER.trace("Acquired lock: " + lock + " for entity bean instance: " + instance + " during invocation: " + context);
}