read Resource annotation from resource