private Element renameGroup(Element params, ServiceContext context) {
final SchematronCriteriaGroupRepository repository = context.getBean(SchematronCriteriaGroupRepository.class);
String groupName = Util.getParam(params, PARAM_GROUP_NAME);
int schematronId = Integer.parseInt(Util.getParam(params, PARAM_SCHEMATRON_ID));
String newRequirement = Util.getParam(params, PARAM_REQUIREMENT, null);
final SchematronCriteriaGroup group = repository.findOne(new SchematronCriteriaGroupId(groupName, schematronId));
SchematronRequirement finalRequirement = group.getRequirement();
if (newRequirement != null) {
finalRequirement = SchematronRequirement.valueOf(newRequirement.toUpperCase());
}