Passing Document as Parameter in Java Agent

Hi,

I am creating a Java agent. Here my question is can I pass a document as parameter while calling a function?

When I write String getReqData(Document doc) {}

it says “cannot find symbol”.

Regards

Rinkal Keswani