The method getProtocol() does not seem to exist

it should be getProtocolVersion()