(ds, con, "UPDATE SimpleAppl "
+ "SET ActivityKey = ? WHERE DBId = ?");
prepStmt.setString (1, auk == null ? null : auk.activityKey());
prepStmt.setLong (2, instId);
if (prepStmt.executeUpdate() == 0) {
throw new InvalidKeyException
("No application instance with key = " + instId);
}
if (logger.isDebugEnabled()) {
logger.debug ("Application " + instId
+ " has been associated with " + auk);