protected void initializeContextForms(T settings, MapModelRenderingContext renderingContext) {
    JsonParser parser = new JsonParser();
    Gson gson = new Gson();
    JsonElement element = parser.parse(settings.getFormContent());

    JsonArray forms = element.getAsJsonArray();
    forms.forEach(
        jsonForm -> {
          String content = gson.toJson(jsonForm);

          if (!StringUtils.isEmpty(content)) {
            FormDefinition formDefinition = formSerializer.deserialize(content);
            if (formDefinition != null) {

              if (formDefinition.getName().startsWith(getFormName(settings) + "-taskform")) {
                renderingContext.setRootForm(formDefinition);
              } else {
                renderingContext.getAvailableForms().put(formDefinition.getId(), formDefinition);
              }
            }
          }
        });
  }
 @Override
 public void setRootForm(FormDefinition rootForm) {
   this.rootFormId = rootForm.getId();
   availableForms.put(rootFormId, rootForm);
 }