49. A computer implemented method for embedding data at an intermediary, said intermediary coupled to both a resource and an application, said method comprising: receiving, at the intermediary, a document generated from the application; retrieving the resource at the intermediary, wherein the resource is identified and selected based on the application; analyzing a plurality of templates using the application to obtain a matching template associated with the resource; identifying the matching template that matches the document; parsing the document using the matching template to identify one or more recognized elements in the document; and embedding data into the document based on the one or more recognized elements.
53. The computer implemented method of claim 49 , wherein said search and identify said one or more recognized elements further comprises a pattern search, said pattern search comprising locating known patterns in said resource from a database coupled to said proxy.