static Protocol determineProtocol(String server) {
checkNotNull(server);
String[] splitServer = server.split(":");
Protocol protocol = Protocol.HTTPS;
if (splitServer.length > 1) {
String port = splitServer[1];
String protocolInTheUrl = splitServer[0].toLowerCase();
if (splitServer[1].startsWith("//")) {
if (Objects.equal(protocolInTheUrl, "http"))