// this MimeDetector works.
TextMimeType mimeType = (TextMimeType)mimeTypes.iterator().next();
for(Iterator it = handlers.iterator(); it.hasNext(); ) {
TextMimeHandler tmh = (TextMimeHandler)it.next();
if(tmh.handle(mimeType, content)) {
// The first handler to return true will short circuit the rest of the handlers
break;
}
}
return mimeTypes;