Segment queries are now loaded properly but for some strange reason the CDI container instantiates two instances of the SegmentService, and only the first one (not fully initialized) is used.