Attachments are read-only
NB: Creating attachments in Jira is currently disabled. Apologies for the inconvenience.
template.insert(new org.bson.Document("_id", UUID.randomUUID().toString()), "foobar");
results in the following, having a _class attribute which should not be present.
"_id" : "f042173d-81bc-453b-b690-ff5ac45cdcbe",
"_class" : "org.bson.Document"
EntityOperations does not apply conversion to Mongo types