code: private String removeLocaleSuffixIfExist(String dir) {
  
  		String result = dir;
  		String dirName = PathNormalizer.getPathName(dir);
  		if (LocaleUtils.LOCALE_SUFFIXES.contains(dirName)) {
  			result = dir.substring(0, dir.indexOf("/" + dirName) + 1);
  		}
  		return result;
  	}
docs: Removes from the directory path the locale suffix if it exists
  
  @param dir
  the directory path
  
  <pre>
  removeLocaleSuffixIfExist( "/css/panel/default/" )         = "/css/panel/default/"
  removeLocaleSuffixIfExist( "/css/panel/default/en_US" )   = "/css/panel/default/"
  </pre>
  
  @return the directory path, with the locale suffix removed if it exists