class AtlasPath {

    public SegmentContext getLastSegmentParent() {
        if (this.segmentContexts.isEmpty() || this.segmentContexts.size() == 1) {
            return null;
        }

        return this.segmentContexts.get(this.segmentContexts.size() - 2);
    }

    public  AtlasPath(String p);
    protected  AtlasPath(List<SegmentContext> segments);
    private  AtlasPath();

}