I have a loop like this:
try(Connection c1 = dataController.getWorkflowConnection()) {
create a statement and open a resultset, loop through it{ //call a funct