code: private static Map<RouteDefinition, Method> getDefinitions(Class clazz) {
  
  		Assert.notNull(clazz, "Missing class with JAX-RS annotations!");
  
  		// base
  		RouteDefinition root = new RouteDefinition(clazz);
  
  		// go over methods ...
  		Map<RouteDefinition, Method> output = new LinkedHashMap<>();
  		for (Method method : clazz.getMethods()) {
  
  			if (isRestCompatible(method)) { // Path must be present
  
  				try {
  					RouteDefinition definition = new RouteDefinition(root, method);
  					output.put(definition, method);
  				}
  				catch (IllegalArgumentException e) {
  
  					throw new IllegalArgumentException(getClassMethod(clazz, method) + " - " + e.getMessage());
  				}
  			}
  		}
  
  		return output;
  	}
docs: Checks class for JAX-RS annotations and returns a list of route definitions to build routes upon
  
  @param clazz to be checked
  @return list of definitions or empty list if none present