Cleanup & format
NXP-13557: use PathSegmentService to correctly generate the name of the document to be created