Implemented retrieving annotation by reflection.