@Override
    protected void doGet(final HttpServletRequest request, final HttpServletResponse response) {
        // Elevate the users permissions for the duration of this task, so they can read the script if
        // they have 'use' permission.
        securityContext.useAsRead(() -> {
            try {
                response.setContentType("text/javascript");
                response.setCharacterEncoding("UTF-8");

                final String query = request.getQueryString();
                if (query != null) {
                    final Map<String, String> queryParamMap = createQueryParamMap(query);

                    final String uuid = queryParamMap.get("uuid");
                    if (uuid != null && !uuid.isEmpty()) {
                        final ScriptDoc script = getScript(uuid);
                        if (script.getData() != null) {
                            final PrintWriter pw = response.getWriter();
                            pw.write(script.getData());
                            pw.close();
                        }
                    }
                }
            } catch (final IOException e) {
                throw new UncheckedIOException(e);
            }
        });
    }
Provides access to {@link ScriptDoc}s for the visualisations
stroom-dashboard/stroom-dashboard-impl/src/main/java/stroom/dashboard/impl/script/ScriptServlet.java