question: protected static boolean isCglibGetCallbacks ( AnnotatedMethod am ) { Class < ? > rt = am . getRawType ( ) ; if ( rt == null || ! rt . isArray ( ) ) { return false ; } Class < ? > compType = rt . getComponentType ( ) ; Package pkg = compType . getPackage ( ) ; if ( pkg != null ) { String pname = pkg . getName ( ) ; if ( pname . startsWith ( "net.sf.cglib" ) || pname . startsWith ( "org.hibernate.repackage.cglib" ) ) { return true ; } } return false ; }
target:  This method was added to address [JACKSON-53]: need to weed out CGLib-injected "getCallbacks".  At this point caller has detected a potential getter method with name "getCallbacks" and we need to determine if it is indeed injectect by Cglib. We do this by verifying that the result type is "net.sf.cglib.proxy.Callback[]" <p> Also, see [JACKSON-177]; Hibernate may repackage cglib it uses, so we better catch that too