*/
public static void popLockedContextForCurrentThread(EOEditingContext ec) {
if (useUnlocker() && ec != null) {
List ecs = locks.get();
if (ecs != null) {
int index = ecs.lastIndexOf(ec);
if (index >= 0) {
ecs.remove(index);
}
else {
log.error("Should pop, but ec not found in Vector! " + Thread.currentThread().getName() + ", ec: " + ec + ", ecs:" + ecs);