Now the controller is responsible for defining the file instead of the factory. This is handy because I need to use servlet stuff in determining the path.