if ( responseDoc != null && responseDoc.hasRepresentations() ) {
response = new Response();
for ( RepresentationDocType representationDoc : responseDoc.getRepresentations() ) {
final RepresentationType wadlRepresentation = new RepresentationType();
wadlRepresentation.setElement( representationDoc.getElement() );
wadlRepresentation.getStatus().add( representationDoc.getStatus() );
wadlRepresentation.setMediaType( representationDoc.getMediaType() );
addDocForExample( wadlRepresentation.getDoc(), representationDoc.getExample() );
addDoc( wadlRepresentation.getDoc(), representationDoc.getDoc() );
JAXBElement<RepresentationType> element = new JAXBElement<RepresentationType>(
new QName("http://research.sun.com/wadl/2006/10","representation"),
RepresentationType.class,
wadlRepresentation);