public Response getGroupDefinitions(
@ApiParam("String to search in the group definition name") @QueryParam("q") String q,
@Context HttpHeaders headers,
@Context UriInfo uriInfo) {
ResourceGroupDefinitionCriteria criteria = new ResourceGroupDefinitionCriteria();
if (q!=null) {
criteria.addFilterName(q);
}
PageList<GroupDefinition> gdlist = definitionManager.findGroupDefinitionsByCriteria(caller, criteria);
List<GroupDefinitionRest> list = new ArrayList<GroupDefinitionRest>();