cleans a mimetype name by removing out the actual mimetype , from a string of the form : < primary type > / < sub type > ; < optional params concode_field_sep MimeTypes mimeTypes concode_elem_sep boolean mimeMagic concode_elem_sep String SEPARATOR concode_elem_sep Tika tika concode_elem_sep Logger LOG concode_field_sep String autoResolveContentType concode_elem_sep String getMimeType concode_elem_sep String getMimeType concode_elem_sep String forName
String function ( String arg0 ) { if ( arg0 == null ) return null ; String [ ] loc0 = arg0 . split ( SEPARATOR ) ; if ( loc0 . length > 1 ) { return loc0 [ 0 ] ; } else { return arg0 ; } }