Moved parsing code out of OakbotDoclet class.