class XmlConfigurationStreamProvider implements ConfigurationStreamProvider {

    @Override
    public InputStream getConfigurationStream() throws ConfigurationException {
        return ofNullable(getConfiguration())
                .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file"));
    }

}