* </p>
*
* @return
*/
protected boolean isLifecycleCallbackInvocation() {
InvocationContext currentInvocationContext = null;
try {
currentInvocationContext = CurrentInvocationContext.get();
} catch (IllegalStateException ise) {
// no context info available so return false
return false;
}
// If the method in current invocation context is null,
// then it represents a lifecycle callback invocation
Method invokedMethod = currentInvocationContext.getMethod();
if (invokedMethod == null) {
// it's a lifecycle callback
return true;
}
// not an lifecycle callback