class KiePMMLPredicateFactory {

    public static KiePMMLCompoundPredicate getKiePMMLCompoundPredicate(CompoundPredicate predicate,
                                                                       DataDictionary dataDictionary) {
        return KiePMMLCompoundPredicate.builder(Collections.emptyList(),
                                                BOOLEAN_OPERATOR.byName(predicate.getBooleanOperator().value()))
                .withKiePMMLPredicates(getPredicates(predicate.getPredicates(), dataDictionary))
                .build();
    }

    private  KiePMMLPredicateFactory();

}