public ParameterFile unmarshal(InputStream inputStream) {
        try {
            Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
            ParameterFile parameterFile = (ParameterFile) unmarshaller.unmarshal(inputStream);

            // When XML is formatted sometimes extra spaces are introduced that
            // we need to remove
            for (Parameter parameter : parameterFile.getParameter()) {
                if (parameter.getValue() != null) {
                    parameter.setValue(parameter.getValue().trim());
                }
            }

            return parameterFile;
        } catch (final JAXBException e) {
            throw new RuntimeException(e);
        }
    }
Usage java stroom.util.config.Configure
<pre><code>{@code <parameter file> <files to process>}</code></pre>
stroom-util/src/main/java/stroom/util/config/Configure.java