code: private static String removeMatrixFromPath(String path, RouteDefinition definition) {
  
  		// simple removal ... we don't care what matrix attributes were given
  		if (definition.hasMatrixParams()) {
  			int index = path.indexOf(";");
  			if (index > 0) {
  				return path.substring(0, index);
  			}
  		}
  
  		return path;
  	}
docs: Removes matrix params from path
  
  @param path       to clean up
  @param definition to check if matrix params are present
  @return cleaned up path