Change getMessageParser for getPacketPaser in factory