class Pac4jServletOutputStreamWriter extends OutputStreamWriter {
        private final ByteArrayOutputStream outputStream;
        public Pac4jServletOutputStreamWriter(final ByteArrayOutputStream out) {
            super(out, StandardCharsets.UTF_8);
            outputStream = out;
        }

        public final String getOutgoingContent() {<FILL_FUNCTION_BODY>}

        @Override
        public String toString() {
            return this.getOutgoingContent();
        }
    }

            try {
                val result = new String(this.outputStream.toByteArray(), StandardCharsets.UTF_8);
                return result;
            } catch (final Exception e) {
                throw new RuntimeException(e);
            }

        
<no_super_class>