public static InputStream getResourceAsStream(String name) {
        return instance.loadResource(name);
    }
Loads the given resource as a stream.

@param name the name of the resource that exists in the classpath.
@return the resource as an input stream or {@code null} if the resource was not found.
xmppserver/src/main/java/org/jivesoftware/util/ClassUtils.java