public static SendToClient getInstance() {
   Logger.debug("{SentToClient - getInstance}", "Getting instance");
   if (_instance == null) {
     Logger.debug("{SentToClient - getInstance}", "Create instance");
     _instance = new SendToClient();
   }
   return _instance;
 }
 public String getJob() {
   synchronized (this) {
     try {
       if (_jobIDs.length == 0) {
         initJobs();
         if (_jobIDs.length == 0) {
           return "no_job";
         } else {
           if (_currentKey >= _jobIDs.length) {
             _currentKey = 0;
           }
           return _jobs.get(_jobIDs[_currentKey++]).getJson();
         }
       }
       if (_currentKey >= _jobIDs.length) {
         _currentKey = 0;
       }
       return _jobs.get(_jobIDs[_currentKey++]).getJson();
     } catch (Exception e) {
       Logger.severe("{SendToClient - getJob", "Error" + e.getLocalizedMessage());
       e.printStackTrace();
       return "error getJob";
     }
   }
 }