code: public void removeAllQueriesAndGroups() {
  		List<QueryControllerEntity> elements = getElements();
  		for (QueryControllerEntity treeElement : elements) {
  			fireElementRemoved(treeElement);
  		}
  		entities.clear();
  	}
docs: Removes all the elements from the vector QueryControllerEntity