def om_document file
    options[:document] ? options[:document].from_xml(File.new(file)) : SolrEad::Document.from_xml(File.new(file))
  end
def om_document file
    options[:document] ? options[:document].from_xml(File.new(file)) : SolrEad::Document.from_xml(File.new(file))
  end
Returns an OM document from a given file.

 Determines if you have specified a custom definition for your ead document.
 If you've defined a class CustomDocument, and have passed it as an option
 to your indexer, then SolrEad will use that class instead of SolrEad::Document.