Refactor the code to handle the creation of the configuration through the use of a method to return an InputStream that represents the target Configuration source