Patent ID: 8201153

Claim:
A data processing system for processing a JAVASERVER page, the data processing system comprising: a memory containing a set of instructions; and a processing unit, responsive to execution of the set of instructions, for translating the JAVASERVER page into a document object model object, the document object model object including a set of nodes; for configuring a set of visitor classes for invocation in a selected sequence; for processing the document object model using the set of visitor classes in the selected sequence to perform a desired set of custom functions on the document object model, wherein the processing step includes invoking methods in the set of visitor classes on each node in the set of nodes in the selected sequence; and for storing results, as processing the document object model object occurs by selected method in the set of visitor classes, in a hash map, wherein the results in the hash map are used by subsequently invoked methods process nodes of the document object model object.