// ContentType
if(!StringUtil.isEmpty(contentType)) {
ct= MimeType.getInstance(contentType);
}
if(rf!=null && ct!=null) {
if(rf.same(ct)) return ct; // because this has perhaps a charset definition
return rf;
}
if(rf!=null) return rf;
if(ct!=null) return ct;