// list of all mapping IDs found on the class
List<String> classMappingIds = new ArrayList<String>();
// get reference to @URLMapping annotation
URLMapping mappingAnnotation = (URLMapping) clazz.getAnnotation(URLMapping.class);
// process annotation if it exists
if (mappingAnnotation != null)
{
String mappingId = processPrettyMappingAnnotation(clazz, mappingAnnotation);