code: public static Resource getFile(Config config, Resource directory, String path, short type) {
  	path = replacePlaceholder(path, config);
  	if (!StringUtil.isEmpty(path, true)) {
  	    Resource file = getFile(directory.getRealResource(path), type);
  	    if (file != null) return file;
  
  	    file = getFile(config.getResource(path), type);
  
  	    if (file != null) return file;
  	}
  	return null;
      }
docs: touch a file object by the string definition
  
  @param config
  @param directory
  @param path
  @param type
  @return matching file