Refactored Query::setContentType()