apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ConfigsImportService.java/ConfigsImportService/importApp
class ConfigsImportService:  private void importApp(String appInfo, List<Env> importEnvs) {
    App toImportApp = gson.fromJson(appInfo, App.class);
    String appId = toImportApp.getAppId();

    //imported app set owner to current user.
    toImportApp.setOwnerName(currentUser);
    toImportApp.setDataChangeCreatedBy(currentUser);
    toImportApp.setDataChangeLastModifiedBy(currentUser);
    toImportApp.setDataChangeCreatedTime(new Date());
    toImportApp.setDataChangeLastModifiedTime(new Date());

    App managedApp = appService.load(appId);
    if (managedApp == null) {
      appService.importAppInLocal(toImportApp);
    }

    importEnvs.parallelStream().forEach(env -> {
      try {
        appService.load(env, appId);
      } catch (Exception e) {
        //not existed
        appService.createAppInRemote(env, toImportApp);
      }
    });
  }