protected InputSource getClassPathInputSource(final String publicId, final String systemId,
      final String path) {
    final InputStream stream = ClassPathLoader.getLatest().getResourceAsStream(getClass(), path);
    if (null == stream) {
      return null;
    }

    final InputSource inputSource = new InputSource(stream);
    inputSource.setPublicId(publicId);
    inputSource.setSystemId(systemId);

    return inputSource;
  }
Get {@link InputSource} for path in class path.

@param path to resource to get {@link InputSource} for.
@return InputSource if resource found, otherwise null.
@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/DefaultEntityResolver2.java