code: private void attemptPluginLoad(GrailsPlugin plugin) {
          if (areDependenciesResolved(plugin) && areNoneToLoadBefore(plugin)) {
              registerPlugin(plugin);
          }
          else {
              delayedLoadPlugins.add(plugin);
          }
      }
docs: Attempts to load a plugin based on its dependencies. If a plugin's dependencies cannot be resolved
  it will add it to the list of dependencies to be resolved later.
  
  @param plugin The plugin