private static void setClassBooleanField(DebugProcessImpl debugProcess,
                                           String clsName,
                                           String fieldName,
                                           boolean value) throws EvaluateException {
    final RequestManagerImpl requestsManager = debugProcess.getRequestsManager();
    ClassPrepareRequestor requestor = new ClassPrepareRequestor() {
      @Override
      public void processClassPrepare(DebugProcess debuggerProcess, ReferenceType referenceType) {
        try {
          requestsManager.deleteRequest(this);
          Field field = referenceType.fieldByName(fieldName);
          Value trueValue = debugProcess.getVirtualMachineProxy().mirrorOf(value);
          ((ClassType)referenceType).setValue(field, trueValue);
        }
        catch (Exception e) {
          LOG.warn("Error setting field " + fieldName + " of class " + clsName, e);
        }
      }
    };

    requestsManager.callbackOnPrepareClasses(requestor, clsName);

    ClassType captureClass = (ClassType)debugProcess.findClass(null, clsName, null);
    if (captureClass != null) {
      requestor.processClassPrepare(debugProcess, captureClass);
    }
  }
private static void setClassBooleanField(DebugProcessImpl debugProcess,
                                           String clsName,
                                           String fieldName,
                                           boolean value)