private InputSource resolveEntityByEntityResolvers(String name, String publicId, String baseURI,
      String systemId) throws SAXException, IOException {
    final ServiceLoader<EntityResolver2> entityResolvers =
        ServiceLoader.load(EntityResolver2.class, ClassPathLoader.getLatest().asClassLoader());
    for (final EntityResolver2 entityResolver : entityResolvers) {
      final InputSource inputSource =
          entityResolver.resolveEntity(name, publicId, baseURI, systemId);
      if (null != inputSource) {
        return inputSource;
      }
    }
    return null;
  }
Resolve entity using discovered {@link EntityResolver2}s.

@return {@link InputSource} for resolved entity if found, otherwise null.
@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXml.java