};
engine.addPattern(NetworkPlaceInstall.PROTOTYPE_PATTERN, r, null);
String newScheme = newUri.getScheme();
String newHost = newUri.getHost();
if(!Util.isNullOrTrimmedBlank(newHost)) {
newHost = engine.replace(newHost);
}
int newPort = Math.max(newUri.getPort(), 0);
String newPath = newUri.getPath();
if(!Util.isNullOrTrimmedBlank(newPath)) {
newPath = Util.urlDecode(engine.replace(newPath));