Configuration flowConf = newFlow.getConf();
if (flowConf.getBoolean(AUTO_WATCH_FLOW_KEY, DEFAULT_AUTO_WATCH_FLOW)) {
// Subscribe to this flow before running it, so we guarantee the user
// sees all the results.
long idNum = flowConf.getLong(SUBMITTER_SESSION_ID_KEY, -1);
SessionId submitterSessionId = new SessionId(idNum);
UserSession session = getSession(submitterSessionId);
if (session != null) {
activeFlowData.addSession(session);
} else {
LOG.warn("Invalid session id number: " + idNum);