code: protected boolean canWrite(MediaType mediaType) {
  		if (mediaType == null || MediaType.ALL.equals(mediaType)) {
  			return true;
  		}
  		for (MediaType supportedMediaType : getSupportedMediaTypes()) {
  			if (supportedMediaType.isCompatibleWith(mediaType)) {
  				return true;
  			}
  		}
  		return false;
  	}
docs: Returns {@code true} if the given media type includes any of the
  {@linkplain #setSupportedMediaTypes(List) supported media types}.
  @param mediaType the media type to write, can be {@code null} if not specified.
  Typically the value of an {@code Accept} header.
  @return {@code true} if the supported media types are compatible with the media type,
  or if the media type is {@code null}