code: public static String getRssServletPath(PageRef pageRef) {
  		String servletPath = pageRef.getBookRef().getPrefix() + pageRef.getPath();
  		for(String extension : RESOURCE_EXTENSIONS) {
  			if(servletPath.endsWith(extension)) {
  				servletPath = servletPath.substring(0, servletPath.length() - extension.length());
  				break;
  			}
  		}
  		return servletPath + EXTENSION;
  	}
docs: Gets the servletPath to the RSS feed for the give page ref.