CustomInjectableValues inject = CustomInjectableValues.newThrowExceptionOnMissing();
// TODO - injectables should only be used if the class has any @JsonInjectable annotations
// Add revision if it's defined
if (entityMeta.hasRevision() && revision != null) {
inject.addValue(entityMeta.getRevisionName(), revision);
}
// Add any attachments
if (entityMeta.hasAttachments()) {
for (AttachmentMeta attachmentDef : entityMeta.getAttachmentMetaList()) {