annotations.addAll(resourceFn.getProducesAnnotations());
for(final Annotation annotation : annotations) {
builder.startElement(QName.fromJavaQName(annotation.getName()), null);
final Literal literals[] = annotation.getLiterals();
if(literals != null) {
for(final Literal literal : literals) {
if(annotation instanceof ConsumesAnnotation || annotation instanceof ProducesAnnotation) {
builder.startElement(INTERNET_MEDIA_TYPE, null);
builder.characters(literal.getValue());