static {
   CONNECTION_CONFIG = ConfigFactory.getInstance().getConnectionConfig();
   if (CONNECTION_CONFIG != null) {
     BASE_URI =
         UriBuilder.fromUri(CONNECTION_CONFIG.getContextPath())
             .path(CONNECTION_CONFIG.getBasicUri())
             .host(CONNECTION_CONFIG.getHost())
             .port(CONNECTION_CONFIG.getPort())
             .scheme("http")
             .build();
   } else {
     BASE_URI = null;
   }
 }