code: public void deployInitialApplications() {
          initDeployAppAttributeIfIsNull();
  
          String gitRepoUrl = getConfig(GIT_URL);
          String tarballResourceUrl = getConfig(TARBALL_URL);
          
          if (gitRepoUrl != null) {
              String targetName = inferCorrectAppGitName();
              deployGitResource(gitRepoUrl, targetName);
          } else if (tarballResourceUrl != null) {
              String targetName = inferCorrectAppTarballName();
              deployTarballResource(tarballResourceUrl, targetName);
          }
          
      }
docs: TODO thread-safety issues: if multiple concurrent calls, may break (e.g. deployment_wars being reset)