[configuration] Added @PrintConfiguration to print the combined interpreted configuration for a certain java file, improved problem reporting
Close the outputstream if it is a file after printing the AST