Refactoring mime type mapping for JBoss compatibility