hash.put("mime-type", doc.getMimeType());
hash.put("mime-type", doc.getMetadata().getMimeType());
    public Hashtable describeResource(User user, String resourceName)    throws EXistException, PermissionDeniedException {        DBBroker broker = brokerPool.get(user);        DocumentImpl doc = null;        Hashtable hash = new Hashtable(5);        try {            doc = (DocumentImpl) broker.openDocument(resourceName, Lock.READ_LOCK);            if (doc == null) {                LOG.debug("document " + resourceName + " not found!");                return hash;            }            if (!doc.getCollection().getPermissions().validate(user, Permission.READ)) {                throw new PermissionDeniedException("Not allowed to read collection");            }            Permission perms = doc.getPermissions();            hash.put("name", resourceName);            hash.put("owner", perms.getOwner());            hash.put("group", perms.getOwnerGroup());            hash                    .put("permissions", new Integer(perms                    .getPermissions()));            hash.put("type",                    doc.getResourceType() == DocumentImpl.BINARY_FILE                    ? "BinaryResource"                    : "XMLResource");            hash.put("content-length", new Integer(doc.getContentLength()));            hash.put("mime-type", doc.getMimeType());            return hash;        } finally {            if(doc != null)                doc.getUpdateLock().release(Lock.READ_LOCK);            brokerPool.release(broker);        }    }