Change backend interface to not get an OutputStream to write to, but to return a list of InputStreams mapped with names, that contain the target code; these can then be read from to get the target code, e.g. so the controller can write it to a file..