added javadoc to doTransaction