added reading of annotations from resource class