public static String indent(String xmlDocument, String indent) {
        return Arrays.stream(xmlDocument.split("\n")).map(s -> indent + s).collect(Collectors.joining("\n"));
    }
Indents a xml fragment with the supplied indent (every line gets ident prefixed).

@param xmlDocument the document to be patched.
@param indent      the indent to be applied
@return the indented document
plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/migration/TestCasePatcher.java