if (ProviderMetadataCollector.isProvider(cls)) {
providersRegistry.addProvider(cls);
}
}
}
AbstractRuntimeContext runtimeContext = new AbstractRuntimeContext() {
public OutputStream getOutputStream() throws IOException {
return null;
}
public InputStream getInputStream() throws IOException {
return null;
}
};
runtimeContext.setAttribute(Providers.class, new ProvidersImpl(providersRegistry,
runtimeContext));
RuntimeContextTLS.setRuntimeContext(runtimeContext);
}