code: protected List<SwaggerExtension> resolveSwaggerExtensions() throws GenerateException {
          List<String> clazzes = apiSource.getSwaggerExtensions();
          List<SwaggerExtension> resolved = new ArrayList<SwaggerExtension>();
          if (clazzes != null) {
              for (String clazz : clazzes) {
                  SwaggerExtension extension = null;
                  //Try to get a parameterized constructor for extensions that are log-enabled.
                  try {
                      try {
                          Constructor<?> constructor = Class.forName(clazz).getConstructor(Log.class);
                          extension = (SwaggerExtension) constructor.newInstance(LOG);
                      } catch (NoSuchMethodException nsme) {
                          extension = (SwaggerExtension) Class.forName(clazz).newInstance();
                      }
                  }
                  catch (Exception e) {
                      throw new GenerateException("Cannot load Swagger extension: " + clazz, e);
                  }
                  resolved.add(extension);
              }
          }
          return resolved;
      }
docs: Resolves all {@link SwaggerExtension} instances configured to be added to the Swagger configuration.
  
  @return List of {@link SwaggerExtension} which should be added to the swagger configuration
  @throws GenerateException if the swagger extensions could not be created / resolved