question: public static boolean hasExtension ( String extension ) { if ( extension == null || extension . isEmpty ( ) ) { return false ; } return extensionToMimeTypeMap . containsKey ( extension ) ; }
target:  Returns true if the given extension has a registered MIME type.