code: public void saveAndDeleteEntities(
          final CmsEntity lastEditedEntity,
          final List<String> deletedEntites,
          final boolean clearOnSuccess,
          final I_CmsSimpleCallback<Boolean> callback) {
  
          CmsRpcAction<CmsSaveResult> asyncCallback = new CmsRpcAction<CmsSaveResult>() {
  
              @Override
              public void execute() {
  
                  start(200, true);
                  getService().saveAndDeleteEntities(
                      lastEditedEntity,
                      m_clientId,
                      deletedEntites,
                      getSkipPaths(),
                      m_locale,
                      clearOnSuccess,
                      this);
              }
  
              @Override
              protected void onResponse(CmsSaveResult result) {
  
                  stop(false);
                  if ((result != null) && result.hasErrors()) {
                      showValidationErrorDialog(result.getValidationResult());
                  } else {
                      callback.execute(Boolean.valueOf((result != null) && result.isHasChangedSettings()));
                      if (clearOnSuccess) {
                          destroyForm(true);
                      }
                  }
              }
          };
          asyncCallback.execute();
      }
docs: Saves the given entities.<p>
  
  @param lastEditedEntity the last edited entity
  @param deletedEntites the deleted entity id's
  @param clearOnSuccess <code>true</code> to clear the VIE instance on success
  @param callback the call back command