Some null annotations and javadoc fix

While searching how to work with queues...
Resource field is also public