code: public static void addLevelsToDatabase(final BuildDatabase buildDatabase, final Level level) {
          // Add the level to the database
          buildDatabase.add(level);
  
          // Add the child levels to the database
          for (final Level childLevel : level.getChildLevels()) {
              addLevelsToDatabase(buildDatabase, childLevel);
          }
      }
docs: Adds the levels in the provided Level object to the content spec database.
  
  @param buildDatabase
  @param level         The content spec level to be added to the database.