check on which module to apply
<p>I have various modules of various sources, how can I check which modules to apply:</p>

<pre><code>protected ExportModule getApplicableModule(DownstreamTradeData data) throws ExportException {
        if(LOG.isTraceLogging()) {
            LOG.trace("Entered getApplicableModule with " + data);
        }
        ExportModule module = null;
        for(ExportModule mod : getExportModules()) {
            //TODO implement check on which module to apply
            if(true) {
                //applicable module found.
                module = mod;
            }
        }
        if(module == null) {
            LOG.warning("No applicable Export Module found for trade data: " + data);
            throw new ExportException();
        }
        if(LOG.isTraceLogging()) {
            LOG.trace("Applying module " + module + " on " + data + ".");
        }
        return module;
    }
</code></pre>

<p>Please help me out, thanks a lot</p>
