code: public synchronized int getTotalBrowserCapacity(String browserName, GridRegistry registry) {
          logger.entering(new Object[] { browserName, registry });
          cleanCacheUsingRegistry(registry);
          int totalBrowserCounts = 0;
          for (Map.Entry<URL, TestSlotInformation> entry : nodeMap.entrySet()) {
              BrowserInformation browserInfo = entry.getValue().getBrowserInfo(browserName);
              totalBrowserCounts += (browserInfo == null) ? 0 : browserInfo.getMaxInstances();
          }
          logger.exiting(totalBrowserCounts);
          return totalBrowserCounts;
      }
docs: Returns the total instances of a particular browser, available through all nodes. This methods takes an instance
  of {@link GridRegistry} to clean the cache before returning the results.
  
  @param browserName
  Browser name as {@link String}
  @param registry
  {@link GridRegistry} instance.
  @return Total instances of a particular browser across nodes.