Can I create a Document Reference List instance inside a Java Service ?

Hi guys … I want to create a document reference list instance inside a Java service that I’m writing …

That is to say, Software AG has a package named WmTaskClient, within which there’s a document type named ‘TaskSearchQueryTerm’ … I want to create an instance of this document type inside a Java service … And then I want to return this as a Document Reference Type …

Is this possible ?