LPS-34244 - Add a method that adds a file to the context