in tx-control-providers/tx-control-provider-common/src/main/java/org/apache/aries/tx/control/resource/common/impl/TrackingResourceProviderFactory.java [85:98]
protected void release(T t) {
synchronized (toClose) {
if(closed) {
throw new IllegalStateException("This resource factory is closed");
}
if (!toClose.remove(t)) {
throw new IllegalArgumentException("The resource " + t + " is not managed by this factory");
}
}
try {
t.close();
} catch (Exception e) {}
}