Example of writing a POJO with the MarkLogic Java Client API's Data Movement SDK.
This class creates the MarkLogic Client with connection details. This needs to be adjusted with connection details for your MarkLogic cluster.
This installs the customEnvelope MarkLogic transform (resources/customEnvelope.sjs) into the MarkLogic REST server.
Generates Person POJOs with randomly selected data and then inserts them asynchronously in MarkLogic via the Data Movement SDK.
Reads out the generated person documents into the Envelope<Person> POJO, representing the envelope pattern. This is done asynchronously via the Data Movement SDK.