class Settings {

    public static String createServerURI() {
        String uri;
        String port;

        if (isSecurePortAvailable()) {
            port = Settings.getServerconfig("server_securePort");
            uri = "https://" + Settings.getServerconfig("server_fqdn") + createURIPortPartWithDefaultPortCheck(port, 443);
        } else {
            port = Settings.getServerconfig("server_insecurePort");
            uri = "http://" + Settings.getServerconfig("server_fqdn") + createURIPortPartWithDefaultPortCheck(port, 80);
        }
        return uri;
    }

    protected  Settings();

}