private static String highPart(final String text){
  return MediaType.sectors(text)[0];
}

private static String highPart ( final String text ) { return MediaType . sectors ( text ) [ 0 ] ; }
returns the high part of the media type .
