title: How to teach findbugs to understand IoC fields properly?
body: <p>This is my class (JAX-RS annotated):</p>
  
  <pre><code>@Path("/")
  public class Foo {
    @Context
    private UriInfo uriInfo;
    // ...
  }
  </code></pre>
  
  <p>This is what <a href="http://findbugs.sourceforge.net/">findbugs</a> says:</p>
  
  <pre><code>Unwritten field: com.XXX.Foo.uriInfo
  </code></pre>
  
  <p>It's true, the field is unwritten, but it is injected by JAX-RS servlet. I think that I'm doing something wrong here, but how to solve the problem?</p>