public boolean resumeAll() {
   if (!isInitialized()) {
     return false;
   }
   try {
     synchronized (lock) {
       List<TaskInfo> taskList = taskManager.getAllTasks();
       for (TaskInfo taskInfo : taskList) {
         taskManager.resumeTask(taskInfo.getName());
       }
     }
     return true;
   } catch (Exception e) {
     logger.error("Cannot resume all tasks. Error: " + e.getLocalizedMessage(), e);
   }
   return false;
 }
 public boolean resume(String taskName) {
   if (!isInitialized()) {
     return false;
   }
   if (taskName == null) {
     return false;
   }
   try {
     synchronized (lock) {
       taskManager.resumeTask(taskName);
     }
   } catch (Exception e) {
     logger.error("Cannot resume task [" + taskName + "]. Error: " + e.getLocalizedMessage(), e);
     return false;
   }
   return true;
 }