if (context.getPrivateData(InternalInvocationMarker.class) == null) {
if (instance.isRemoved() || instance.isDiscarded()) {
final Object primaryKey = context.getPrivateData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY);
component.getCache().release(instance, true);
lock.unlock();
throw EjbLogger.ROOT_LOGGER.instanceWasRemoved(component.getComponentName(), primaryKey);
}
}
Object currentTransactionKey = null;