move the common code for all parsers to base class, refactore Parser for pslan adapter