public final OutputFormat getOutputFormat(final PJsonObject specJson) {
        final String format = specJson.getString(MapPrinterServlet.JSON_OUTPUT_FORMAT);
        final boolean mapExport =
                this.configuration.getTemplate(specJson.getString(Constants.JSON_LAYOUT_KEY)).isMapExport();
        final String beanName =
                format + (mapExport ? MAP_OUTPUT_FORMAT_BEAN_NAME_ENDING : OUTPUT_FORMAT_BEAN_NAME_ENDING);

        if (!this.outputFormat.containsKey(beanName)) {
            throw new RuntimeException("Format '" + format + "' with mapExport '" + mapExport
                                               + "' is not supported.");
        }

        return this.outputFormat.get(beanName);
    }
public final OutputFormat getOutputFormat ( final PJsonObject specJson ) { final String format = specJson . getString ( MapPrinterServlet . JSON_OUTPUT_FORMAT ) ; final boolean mapExport = this . configuration . getTemplate ( specJson . getString ( Constants . JSON_LAYOUT_KEY ) ) . isMapExport ( ) ; final String beanName = format + ( mapExport ? MAP_OUTPUT_FORMAT_BEAN_NAME_ENDING : OUTPUT_FORMAT_BEAN_NAME_ENDING ) ; if ( ! this . outputFormat . containsKey ( beanName ) ) { throw new RuntimeException ( "Format '" + format + "' with mapExport '" + mapExport + "' is not supported." ) ; } return this . outputFormat . get ( beanName ) ; }
Get the object responsible for printing to the correct output format.

@param specJson the request json from the client