citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java
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 "";
		}
	}
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 "";
		}
	}
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 "" ; } }
Gets the page id.

@param parameters
the parameters
@return the page id
Gets the page id .