GraphicsConnection::parseHandshake| refactor