code: private String normalize(final String viewName) {
  		String normalized = viewName;
  
  		if (normalized.startsWith("/")) {
  			normalized = normalized.substring(0);
  		}
  
  		if (normalized.endsWith("/")) {
  			normalized = normalized.substring(0, normalized.length() - 1);
  		}
  
  		return normalized.replaceAll("/", ".");
  	}
docs: Remove beginning and ending slashes, then replace all occurrences of / with .
  
  @param viewName
  The Spring viewName
  @return The name of the view, dot separated.