Add getProtocol implementation.