code: private void createDefaultTaxonomyIfNeeded() {
          if (! autoInitializationChecked()) {
              try {
                  LOG.info("Checking if default taxonomy needs to be created.");
                  // if any business taxonomy has been created, don't create one more - hence searching to
                  // see if any taxonomy exists.
                  if (doGetResources(new CollectionRequest(null, null)).getPropertyMaps().isEmpty()) {
                      LOG.info("No taxonomies found - going to create default taxonomy.");
                      Map<String, Object> requestProperties = new HashMap<>();
                      String defaultTaxonomyName = DEFAULT_TAXONOMY_NAME;
                      try {
                          Configuration configuration = ApplicationProperties.get();
                          defaultTaxonomyName = configuration.getString("atlas.taxonomy.default.name",
                                  defaultTaxonomyName);
                      } catch (AtlasException e) {
                          LOG.warn("Unable to read Atlas configuration, will use {} as default taxonomy name",
                                  defaultTaxonomyName, e);
                      }
                      requestProperties.put("name", defaultTaxonomyName);
                      requestProperties.put("description", DEFAULT_TAXONOMY_DESCRIPTION);
  
                      doCreateResource(new InstanceRequest(requestProperties));
                      LOG.info("Successfully created default taxonomy {}.", defaultTaxonomyName);
                  } else {
                      taxonomyAutoInitializationChecked = true;
                      LOG.info("Some taxonomy exists, not creating default taxonomy");
                  }
              } catch (InvalidQueryException | ResourceNotFoundException e) {
                  LOG.error("Unable to query for existing taxonomies due to internal error.", e);
              } catch (ResourceAlreadyExistsException e) {
                  LOG.info("Attempted to create default taxonomy and it already exists.");
              }
          }
      }
docs: must be called from within class monitor