code: protected final String getPageId(final String parameters) {
  		if (parameters != null) {
  			String cleanedString = parameters;
  			if (parameters.contains("[")) {
  				cleanedString = cleanedString.replace(cleanedString.substring(cleanedString.indexOf('[') , cleanedString.lastIndexOf(']')+1), "");
  			} 
  			
  			return cleanedString.substring(cleanedString.lastIndexOf('/') + "/".length(), cleanedString.length());
  		} else {
  			return "";
  		}
  	}
docs: Gets the page id.
  
  @param parameters
  the parameters
  @return the page id