if ( managementUri != null )
return managementUri;
else
return hostPath("/db/manage/");
}
<BUG>private String hostPath(String path) {
final URI baseUri = uriInfo.getBaseUri();
final int port = baseUri.getPort();
return baseUri.getScheme() + "://" + baseUri.getHost() + (port != 80 ? ":" + Integer.toString(port) : "") + path;</BUG>
}

if ( managementUri != null )
return managementUri;
else
return hostPath("/db/manage/");
}
private String hostPath(String path) {
return uriInfo.getBaseUriBuilder().replacePath( path ).build( ).toString();
}
