if (factory == null)
{
factory = Json.createReaderFactory(null);
}
Charset charset = getCharset(mediaType);
<BUG>return factory.createReader(is, charset);
}</BUG>
protected JsonWriter findWriter(MediaType mediaType, OutputStream os)
{
ContextResolver<JsonWriterFactory> resolver = providers.getContextResolver(JsonWriterFactory.class, mediaType);

if (factory == null)
{
factory = Json.createReaderFactory(null);
}
Charset charset = getCharset(mediaType);
return charset == null ? factory.createReader(is) : factory.createReader(is, charset);
}
protected JsonWriter findWriter(MediaType mediaType, OutputStream os)
{
ContextResolver<JsonWriterFactory> resolver = providers.getContextResolver(JsonWriterFactory.class, mediaType);
