code: private static String stripEnding(final String clazz) {
  
  		if (!clazz.endsWith("view")) {
  			return clazz;
  		}
  
  		return clazz.substring(0, clazz.lastIndexOf("view"));
  	}
docs: Strip ending.
  
  @param clazz
  the clazz
  @return the string