code: public String getMimeType(String resourceName) {
          if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("getMimeType( " + resourceName + " )");
          }
          URL resource = getResource(resourceName);
          if (resource == null) {
              return null;
          }
          String url = resource.toString();
          if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("         URL: " + url);
          }
  
          String contentType = typeMap.getContentType(url);
          if (LOGGER.isDebugEnabled()) {
              LOGGER.debug(" ContentType: " + contentType);
          }
          return contentType;
      }
docs: {@inheritDoc}