code: public void saveEntities(List<CmsEntity> entities, final boolean clearOnSuccess, final Command callback) {
  
          AsyncCallback<CmsValidationResult> asyncCallback = new AsyncCallback<CmsValidationResult>() {
  
              public void onFailure(Throwable caught) {
  
                  onRpcError(caught);
              }
  
              public void onSuccess(CmsValidationResult result) {
  
                  callback.execute();
                  if ((result != null) && result.hasErrors()) {
                      //   CmsValidationHandler.getInstance().displayErrors(null, result)
                  }
                  if (clearOnSuccess) {
                      destroyForm(true);
                  }
              }
          };
          getService().saveEntities(entities, asyncCallback);
      }
docs: Saves the given entities.<p>
  
  @param entities the entities to save
  @param clearOnSuccess <code>true</code> to clear the entity back-end instance on success
  @param callback the call back command