code: @Singleton
      Configuration getConfiguration(FreemarkerViewsRendererConfiguration freemarkerConfiguration,
                                     ViewsConfiguration viewsConfiguration,
                                     Environment environment) {
          Configuration configuration = new Configuration(freemarkerConfiguration.getIncompatibleImprovements());
          configuration.setClassLoaderForTemplateLoading(environment.getClassLoader(), "/" + viewsConfiguration.getFolder());
          return configuration;
      }
docs: Constructs a freemarker configuration.
  
  @param freemarkerConfiguration The freemarker configuration properties
  @param viewsConfiguration The views configuration
  @param environment The environment
  @return The freemarker configuration