class PMML4UnitImpl implements PMML4Unit {

    @Override
    public PMMLDataField findDataDictionaryEntry(String fieldName) {
        PMMLDataField field = this.dataDictionaryMap.get(fieldName);
        // If the field is not found using the name as a key in the map
        // then iterate through the map's values looking at the raw PMML
        // field info, to find it.
        if (field == null) {
            for (Iterator<PMMLDataField> iter = this.dataDictionaryMap.values().iterator(); iter.hasNext() && field == null;) {
                PMMLDataField fld = iter.next();
                if (fld != null && fld.getRawDataField() != null && fld.getRawDataField().getName().equals(fieldName)) {
                    field = fld;
                }
            }
        }
        return field;
    }

    public  PMML4UnitImpl(PMML rawPmml);
    public  PMML4UnitImpl(String pmmlSourcePath);

}