code: private void processPrettyBeanAnnotation(Class<?> clazz)
     {
  
        // get reference to @URLMapping annotation
        URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);
  
        // process annotation if it exists
        if (prettyBean != null)
        {
  
           // log class name
           if (log.isTraceEnabled())
           {
              log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
           }
  
           // add bean to map
           beanNameMap.put(clazz, prettyBean.value());
  
        }
  
     }
docs: Checks the class for a {@link URLBeanName} annotation.
  
  @param clazz Class to scan