jodd-jtx/src/main/java/jodd/jtx/JtxTransaction.java
protected <E> E lookupResource(final Class<E> resourceType) {
		for (JtxResource jtxResource : resources) {
			if (jtxResource.isSameTypeAsResource(resourceType)) {
				//noinspection unchecked
				return (E) jtxResource.getResource();
			}
		}
		return null;
	}
protected <E> E lookupResource(final Class<E> resourceType) {
		for (JtxResource jtxResource : resources) {
			if (jtxResource.isSameTypeAsResource(resourceType)) {
				//noinspection unchecked
				return (E) jtxResource.getResource();
			}
		}
		return null;
	}
Lookups for open resource. Returns <code>null</code> if resource not found.
Only open resources can be found.