pathInfo.setPrecedingPathSegment(convertPathSegmentList(precedingPathSegments));
List<PathSegment> odataSegments = new ArrayList<PathSegment>();
for (final javax.ws.rs.core.PathSegment segment : pathSegments) {
if (segment.getMatrixParameters() == null || segment.getMatrixParameters().isEmpty()) {
odataSegments.add(new ODataPathSegmentImpl(segment.getPath(), null));
} else {
// post condition: we do not allow matrix parameters in OData path segments
throw new ODataNotFoundException(ODataNotFoundException.MATRIX.addContent(segment.getMatrixParameters()
.keySet(), segment.getPath()));
}