Cleanup the code. Remove bundleUrlPrefixLength which is not required when we extract from the URL the path using url.getPath