code: protected void installFedoraContext() throws InstallationFailedException {
          File contextDir =
              new File(getConf().getPath() + File.separator + "Catalina"
                      + File.separator + "localhost");
          contextDir.mkdirs();
  
          try {
              String content =
                      IOUtils.toString(this.getClass()
                              .getResourceAsStream("/webapp-context/context.xml"))
                              .replace("${fedora.home}",
                                       getOptions().getValue(InstallOptions.FEDORA_HOME));
  
              String name =
                      getOptions()
                              .getValue(InstallOptions.FEDORA_APP_SERVER_CONTEXT)
                              + ".xml";
  
              FileOutputStream out =
                      new FileOutputStream(new File(contextDir, name));
  
              out.write(content.getBytes());
              out.close();
          } catch (Exception e) {
              throw new InstallationFailedException(e.getMessage(), e);
          }
  
      }
docs: Creates a Tomcat context for Fedora in
  $CATALINA_HOME/conf/Catalina/localhost which sets the fedora.home system
  property to the installer-provided value.