private GAVCoordinate findInstalledPluginByGA(
     final Set<GAVCoordinate> installedPluginsFilteredByGA, final GAVCoordinate gav) {
   if (installedPluginsFilteredByGA != null) {
     for (GAVCoordinate coord : installedPluginsFilteredByGA) {
       if (coord.matchesByGA(gav)) {
         return coord;
       }
     }
   }
   return null;
 }
  protected GAVCoordinate getActivatedPluginGav(final GAVCoordinate gav, final boolean strict) {
    // try exact match 1st
    if (activePlugins.containsKey(gav)) {
      return gav;
    }

    // if we are lax, try by GA
    if (!strict) {
      for (GAVCoordinate coord : activePlugins.keySet()) {
        if (coord.matchesByGA(gav)) {
          return coord;
        }
      }
    }

    // sad face here
    return null;
  }