with Resource annotation support