Getting the segment by using the KDM file