servletServiceContext = this;
} else {
// another servlet service
servletServiceContext = (ServletServiceContext) this.getNamedContext(servletServiceName);
if (servletServiceContext == null) {
throw new URISyntaxException(uri.toString(), "Unknown servlet service name");
}
}
String mountPath = servletServiceContext.getMountPath();
if (mountPath == null) {
throw new URISyntaxException(uri.toString(), "No mount point for this URI");
}
if (mountPath.endsWith("/")) {
mountPath = mountPath.substring(0, mountPath.length() - 1);
}