Replaced the use of SliceDefinitionImpl with SliceDefinition in SegmentDefinitionImpl.
Modified/added/(hopefully)clarified JavaDoc.