class Oas30ModelHelper {

    static String getScheme(Server server) {
        String serverUrl = resolveUrl(server);
        if (serverUrl.startsWith(HTTP)) {
            try {
                return new URL(serverUrl).getProtocol();
            } catch (MalformedURLException e) {
                LOG.warn(String.format("Unable to determine base path from server URL: %s", serverUrl));
            }
        }

        return HTTP;
    }

    private  Oas30ModelHelper();

}