private String type(CharSequence in) { ContentType ctype = ContentType.parse(in); return ctype.type(); }