class KiePMMLPredicateFactory {

    public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) {
        List<Object> values = getObjectsFromArray(predicate.getArray());
        return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(),
                                                 Collections.emptyList(),
                                                 ARRAY_TYPE.byName(predicate.getArray().getType().value()),
                                                 IN_NOTIN.byName(predicate.getBooleanOperator().value()))
                .withValues(values)
                .build();
    }

    private  KiePMMLPredicateFactory();

}