code: public static Resource getExistingResource(ServletContext sc, String strDir, String defaultDir, Resource configDir, short type, Config config) {
  	// ARP
  
  	strDir = replacePlaceholder(strDir, config);
  	if (strDir != null && strDir.trim().length() > 0) {
  	    Resource res = sc == null ? null : _getExistingFile(config.getResource(ResourceUtil.merge(ReqRspUtil.getRootPath(sc), strDir)), type);
  	    if (res != null) return res;
  
  	    res = _getExistingFile(config.getResource(strDir), type);
  	    if (res != null) return res;
  	}
  	if (defaultDir == null) return null;
  	return _getExistingFile(configDir.getRealResource(defaultDir), type);
  
      }
docs: get only a existing file, dont create it
  
  @param sc
  @param strDir
  @param defaultDir
  @param configDir
  @param type
  @param config
  @return existing file