code: public static List<String> getAvailableLocaleSuffixesForBundle(String messageBundlePath, String fileSuffix,
  			ServletContext servletContext) {
  
  		int idxNameSpace = messageBundlePath.indexOf("(");
  		int idxFilter = messageBundlePath.indexOf("[");
  		int idx = -1;
  		if (idxNameSpace != -1 && idxFilter != -1) {
  			idx = Math.min(idxNameSpace, idxFilter);
  		} else if (idxNameSpace != -1 && idxFilter == -1) {
  			idx = idxNameSpace;
  		} else if (idxNameSpace == -1 && idxFilter != -1) {
  			idx = idxFilter;
  		}
  
  		String messageBundle = null;
  		if (idx > 0) {
  			messageBundle = messageBundlePath.substring(0, idx);
  		} else {
  			messageBundle = messageBundlePath;
  		}
  		return getAvailableLocaleSuffixes(messageBundle, fileSuffix, servletContext);
  	}
docs: Returns the list of available locale suffixes for a message resource
  bundle
  
  @param messageBundlePath
  the resource bundle path
  @param fileSuffix
  the file suffix
  @param servletContext
  the servlet context
  @return the list of available locale suffixes for a message resource
  bundle