public Document process(Document input) throws TransformerException {
        Document doc = Xml.copyDocument(input);
        Document document = buildProperties(doc);
        applyProperties(document.getDocumentElement());
        return document;
    }
@Test
    public void testWarnIfDuplicatePropertyForSameEnvironment() throws TransformerException {
        String input = """
                       <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                       <services xmlns:deploy="vespa" xmlns:preprocess="properties" version="1.0">
                         <preprocess:properties>
                           <slobrok.port>4099</slobrok.port>
                           <slobrok.port>5000</slobrok.port>
                           <redundancy>2</redundancy>
                         </preprocess:properties>
                         <admin version="2.0">
                           <adminserver hostalias="node0"/>
                           <slobroks>
                             <slobrok hostalias="node1" baseport="${slobrok.port}"/>
                           </slobroks>
                         </admin>
                       </services>""";


        // Should get the last defined value
        String expected = """
                          <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                          <services xmlns:deploy="vespa" xmlns:preprocess="properties" version="1.0">
                            <admin version="2.0">
                              <adminserver hostalias="node0"/>
                              <slobroks>
                                <slobrok hostalias="node1" baseport="5000"/>
                              </slobroks>
                            </admin>
                          </services>""";

        Document inputDoc = Xml.getDocument(new StringReader(input));
        Document newDoc = new PropertiesProcessor().process(inputDoc);
        TestBase.assertDocument(expected, newDoc);
    }