Pwp message parser generalization. Added logic for getting result from parser.