code: public void saveEntities(Set<String> entityIds, boolean clearOnSuccess, Command callback) {
  
          List<CmsEntity> entities = new ArrayList<CmsEntity>();
          for (String entityId : entityIds) {
              CmsEntity entity = m_entityBackend.getEntity(entityId);
              if (entity != null) {
                  entities.add(entity);
              }
          }
          saveEntities(entities, clearOnSuccess, callback);
      }
docs: Saves the given entity.<p>
  
  @param entityIds the entity ids
  @param clearOnSuccess <code>true</code> to clear all entities from entity back-end on success
  @param callback the callback executed on success