inputStreams.add(in);
}
if (inputStreams.size() > 0) {
MimeTypes mimeTypes = MimeTypesFactory.create(inputStreams.toArray(new InputStream[inputStreams.size()]));
ServiceLoader loader = new ServiceLoader();
this.detector = new DefaultDetector(mimeTypes, loader);
} else {
throw new MorphlineCompilationException("Missing specification for MIME type mappings", config);
}
} finally {