* @return the wadl request representation for the specified {@link MediaType}.
*/
private RepresentationType setRepresentationForMediaType( AbstractResource r,
final AbstractResourceMethod m, MediaType mediaType,
Request wadlRequest ) {
RepresentationType wadlRepresentation = getRepresentationByMediaType( wadlRequest.getRepresentation(), mediaType );
if ( wadlRepresentation == null ) {
wadlRepresentation = _wadlGenerator.createRequestRepresentation( r, m, mediaType );
wadlRequest.getRepresentation().add(wadlRepresentation);
}
return wadlRepresentation;