Use javassist API directly to extract annotations.

With Javassist, there is no need to load the classes and thus, no need to have the complete classpath.
Changed retention of annotations to RetentionPolicy.CLASS.