String source = elem.consumeRequiredRawAttribute(SOURCE_ATTRIBUTE);
// doNotEmbed is optional on DataResource
Boolean doNotEmbed = elem.consumeBooleanConstantAttribute(DO_NOT_EMBED_ATTRIBUTE);
// mimeType is optional on DataResource
String mimeType = elem.consumeRawAttribute(MIME_TYPE_ATTRIBUTE);
ImplicitDataResource dataMethod = bundleClass.createDataResource(
name, source, mimeType, doNotEmbed);
FieldWriter field = fieldManager.registerField(dataResourceType,
dataMethod.getName());
field.setInitializer(String.format("%s.%s()",
fieldManager.convertFieldToGetter(bundleClass.getFieldName()),
dataMethod.getName()));
}