Do you think this is a better way to discover the MIME type of returning content from a servlet or jsp page?