();     } }  private void addShutdownHook(final String workflowName) {     Runtime.getRuntime().addShutdownHook(new Thread() {         public void run() {             disableControlMessageStatus(workflowName);         }     });     log.info("Shut Down Hook Attached for the thread processing the workflow :"+workflowName); }  private 