code: public static String toTemplateResourceName(final Class clazz) {
  		String url = getTemplatePath(clazz);
  		url = url.replace('.', '/');
  		int index = url.lastIndexOf('$');
  
  		if (index != -1) {
  			int first = url.lastIndexOf('/');
  			String classs = url.substring(index + 1, url.length());
  			String dir = url.substring(0, first + 1);
  			url = dir + classs;
  		}
  
  		url = VELOCITY_PREFIX + url + ".vm";
  		// Internalize to avoid having heaps of copies of identical strings around.
  		url = url.intern();
  		LOG.debug("vm template : " + url);
  		return url;
  	}
docs: Map the given class to a velocity template resource name.
  <p>
  For instance, com.github.bordertech.wcomponents.WTextField maps to the template in
  com/github/bordertech/wcomponents/WTextField.vm
  </p>
  
  @param clazz is the Class to find the resource name for.
  @return the template resource name for the given class.