code: public static String getRealResourcePath(String path,
  			Map<String, String> pluginMsgPathMap) {
  		String realPath = path;
  		Matcher matcher = PLUGIN_RESOURCE_PATTERN.matcher(path);
  		StringBuffer sb = new StringBuffer();
  
  		if (matcher.find()) {
  
  			String pluginName = matcher.group(2);
  			String pluginPath = pluginMsgPathMap.get(pluginName);
  			if (pluginPath != null) {
  				matcher.appendReplacement(sb,
  						RegexUtil.adaptReplacementToMatcher(pluginPath + "/"));
  				matcher.appendTail(sb);
  				realPath = sb.toString();
  				if (LOGGER.isDebugEnabled()) {
  					LOGGER.debug("Plugin path '" + path + "' mapped to '"
  							+ realPath + "'");
  				}
  			} else {
  				if (LOGGER.isDebugEnabled()) {
  					LOGGER.debug("No Plugin path found for '" + pluginName);
  				}
  			}
  		}
  
  		return realPath;
  	}
docs: Handle the mapping of the resource path to the right one. This can be the
  case for plugin resources. It will returns the file system path or the
  real path or the same path if the path has not been remapped
  
  @param path
  the path
  @param pluginMsgPathMap
  the map for plugin path
  @return the real path or the same path if the path has not been remapped