boolean oneFailed = false;
boolean foundIt = false;
// get the mimeType's in this .war
for (Enumeration e = descriptor.getMimeMappings() ; e.hasMoreElements() ;) {
foundIt = false;
MimeMappingDescriptor mimemapping = (MimeMappingDescriptor)e.nextElement();
String mimeType = mimemapping.getMimeType();
logger.log(Level.FINE, "servlet mimeType: " + mimeType);
int pos = mimeType.indexOf("/");
// user defined
// see http://www-dos.uniinc.msk.ru/tech1/1995/mime/m_tech.htm#Type