}
try
{
final Map<String, Object> attributes = new HashMap<String, Object>();
MessageBodyReaderContextImpl messageBodyReaderContext = new MessageBodyReaderContextImpl(interceptors, reader, type,
genericType, annotations, mediaType, requestHeaders, inputStream)
{
@Override
public Object getAttribute(String attribute)
{
return attributes.get(attribute);
}
@Override
public void setAttribute(String name, Object value)
{
attributes.put(name, value);
}
@Override
public void removeAttribute(String name)
{
attributes.remove(name);
}
};
return (T) messageBodyReaderContext
.proceed();
}
catch (Exception e)
{
if (e instanceof ReaderException)