int offset = 1;
prepStmt.setLong (offset++, instId);
prepStmt.setString (offset++, applName);
prepStmt.setString (offset++, applInstKey);
prepStmt.setString (offset++, auk.activityKey());
prepStmt.setString (offset++, auk.processKey());
prepStmt.setString (offset++, auk.managerName());
if (saveAssignment) {
String resourceKey = null;
Iterator i = activity.assignments().iterator();
if (i.hasNext ()) {