throw new InvalidMidiDataException("Cannot read MidiFileFormat from stream");
throw new InvalidMidiDataException("Can't read MidiFileFormat from stream");
  public static MidiFileFormat getMidiFileFormat(InputStream stream)    throws InvalidMidiDataException, IOException  {    Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class);    while (readers.hasNext())    {      MidiFileReader sr = (MidiFileReader) readers.next();      MidiFileFormat sb = sr.getMidiFileFormat(stream);      if (sb != null)        return sb;    }    throw new InvalidMidiDataException("Cannot read MidiFileFormat from stream");  }