code: public synchronized void updateComplete() {
          grailsClassesByName = Collections.unmodifiableMap(grailsClassesByName);
          classesByName = Collections.unmodifiableMap(classesByName);
  
          grailsClassesArray = grailsClasses.toArray(new GrailsClass[grailsClasses.size()]);
          // Make classes array
          classes = classesByName.values().toArray(new Class[classesByName.size()]);
      }
docs: Refresh the arrays generated from the maps.