class KiePMMLSegmentFactory {

    public static List<KiePMMLSegment> getSegments(final DataDictionary dataDictionary,
                                                   final TransformationDictionary transformationDictionary,
                                                   final List<Segment> segments,
                                                   final KnowledgeBuilder kBuilder) {
        logger.debug(GET_SEGMENTS, segments);
        return segments.stream().map(segment -> getSegment(dataDictionary, transformationDictionary, segment,
                                                           kBuilder)).collect(Collectors.toList());
    }

    private  KiePMMLSegmentFactory();

}