if (config.getDeploymentContext() != null) { baseURL += config.getDeploymentContext(); URI uri = URI.create(applicationPath.value()); String path = uri.getPath(); if (config.getDeploymentContext() != null && path.startsWith(config.getDeploymentContext())) { path = path.substring(config.getDeploymentContext().length());
if (config.getDeploymentContext() != null) { baseURL += config.getDeploymentContext();