m_writeTransformers = new ArrayList<WriteTransformerMetadata>();
// Process all the write transformers first.
MetadataAnnotation writeTransformers = getAnnotation(WriteTransformers.class);
if (writeTransformers != null) {
for (Object transformer : (Object[]) writeTransformers.getAttributeArray("value")) {
m_writeTransformers.add(new WriteTransformerMetadata((MetadataAnnotation)transformer, accessibleObject));
}
}
// Process the single write transformer second.
MetadataAnnotation writeTransformer = getAnnotation(WriteTransformer.class);
if (writeTransformer != null) {
m_writeTransformers.add(new WriteTransformerMetadata(writeTransformer, accessibleObject));
}
//TODO: ReturningPolicy
}