class LineOfBearingDetector implements CellDetector<LobColumnResults> {

    @Override
    public ValuesWithConfidence<LobColumnResults> detect(CellSampler sampler)
    {
        LobColumnResults ecr = new LobColumnResults();
        for (int headerIndex = 0; headerIndex < sampler.getHeaderCells().size(); headerIndex++)
        {
            String colName = sampler.getHeaderCells().get(headerIndex);
            for (String lob : myLOBColumnNames)
            {
                if (lob.equalsIgnoreCase(colName.toLowerCase()))
                {
                    LineOfBearingColumn lobCol = new LineOfBearingColumn(colName, headerIndex);
                    ecr.setLineOfBearingColumn(lobCol);
                    break;
                }
            }
        }
        return new ValuesWithConfidence<LobColumnResults>(ecr, Math.max(0f, ecr.getConfidence()));
    }

    public  LineOfBearingDetector(PreferencesRegistry prefsRegistry);

}