public static JoinPoint unWrapJoinPoint ( final JoinPoint point ) { var naked = point ; while ( naked . getArgs ( ) != null && naked . getArgs ( ) . length > 0 && naked . getArgs ( ) [ 0 ] instanceof JoinPoint ) { naked = ( JoinPoint ) naked . getArgs ( ) [ 0 ] ; } return naked ; }
Unwraps a join point that may be nested due to layered proxies .