code: @SuppressWarnings("unchecked")
      private <T> ShrinkWrapResolverServiceLocator setServices(Class<T> type, T... services) {
  
          CacheItem item = cache.get(type);
          if (item == null) {
              item = new CacheItem(type);
          }
  
          item.replaceInstances(services);
          cache.put(type, item);
          return this;
  
      }
docs: Sets the instances for a service.
  
  @param <T> The service type.
  @param type The interface describing the service, must not be {@code null}.
  @param services The instances of the service, may be {@code null} but must not contain {@code null} elements.
  @return This locator for chaining, never {@code null}.