Couldn't find any way to get the annotation of the resource programmatically. Leaving it for now.