// We should check that it matches....
// btw we should try to enforce matching during compilation phase
// @Action -> Response.Action
// @View -> Response.Mime
// as we can do it
Response resp = (Response)ret;
if (mimeType != null) {
resp = resp.with(PropertyType.MIME_TYPE, mimeType.value()[0]);
}
return resp;
} else if (ret != null && mimeType != null) {
for (EntityMarshaller writer : Tools.loadService(EntityMarshaller.class, request.controllerPlugin.getApplication().getClassLoader())) {
for (String s : mimeType.value()) {