void (String path, String macroExpr, boolean overwrite) { path = Strings.trimEnd(path, "/"); putIfAbsent(path, macroExpr, overwrite); for (String protocol : PathMacroProtocolHolder.getProtocols()) { putIfAbsent(protocol + ":" + path, protocol + ":" + macroExpr, overwrite); putIfAbsent(protocol + ":/" + path, protocol + ":/" + macroExpr, overwrite); putIfAbsent(protocol + "://" + path, protocol + "://" + macroExpr, overwrite); } }