public String getMimeType(boolean useExtension) {
// FIXME Shouldn't have direct dependency on SitePlugin
String mime = getContent().getProperty("jcr:mimeType").getString();
if (useExtension && (Strings.isEmpty(mime) || mime.equals("application/octet-stream"))) {
ResourceNodePlugin plugin = (ResourceNodePlugin) SitePlugin.get(getBrix())
.getNodePluginForType(ResourceNodePlugin.TYPE);
return plugin.resolveMimeTypeFromFileName(getName());
}
return mime;
}