code: protected void commitChange(final CmsSitemapChange change, final Command callback) {
  
          if (change != null) {
              // save the sitemap
              CmsRpcAction<CmsSitemapChange> saveAction = new CmsRpcAction<CmsSitemapChange>() {
  
                  /**
                  * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                  */
                  @Override
                  public void execute() {
  
                      start(0, true);
                      getService().save(getEntryPoint(), change, this);
  
                  }
  
                  /**
                  * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                  */
                  @Override
                  public void onResponse(CmsSitemapChange result) {
  
                      stop(false);
  
                      applyChange(result);
                      if (callback != null) {
                          callback.execute();
                      }
                  }
              };
              saveAction.execute();
          }
      }
docs: Adds a change to the queue.<p>
  
  @param change the change to commit
  @param callback the callback to execute after the change has been applied