class EcmFileToSolrTransformer implements AcmObjectToSolrDocTransformer<EcmFile> {

    @Override
    public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in)
    {
        if (enableContentFileIndexing)
        {
            return null;
        }
        else
        {
            return mapDocumentProperties(in);
        }
    }

}