private boolean checkActionIsPrepared() {
   if (WifiReceiver.getInstance().isConnected() && ServiceManager.getInstance().isDmcOpen()) {
     if (Thread.currentThread().getState() == State.WAITING) {
       return false;
     }
     return true;
   } else {
     return false;
   }
 }
 private ActionManager() {
   service = ServiceManager.getService();
   handlers = new HashMap<String, SyncHandler>();
 }