class StandardOutputFileHandler implements OutputFileHandler {

    protected OutputStream outputStream;

    @Override
    public int getPriority() {
        return PRIORITY_DEFAULT;
    }

    @Override
    public void create(String outputFile, CommandScope commandScope) throws IOException {<FILL_FUNCTION_BODY>}

    @Override
    public void close() throws IOException {
        if (outputStream != null) {
            outputStream.flush();
            outputStream.close();
        }
    }
}

        final PathHandlerFactory pathHandlerFactory = Scope.getCurrentScope().getSingleton(PathHandlerFactory.class);
        outputStream = pathHandlerFactory.openResourceOutputStream(outputFile, new OpenOptions());
        commandScope.setOutput(outputStream);
    
<no_super_class>