try {
logger.debug(bundle.getString("management-debug-invoking-operation", actionName, managedType
.getType().getCanonicalName()));
return method.getMethod().invoke(delegate, params);
} catch (Exception e) {
throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName), e);
}
} else {
throw new ManagedInvokationException(bundle.getString("management-invoke-error", actionName));
}
} finally {
deactivateContexts(managedType.getType());
}
} else {
throw new ManagedInvokationException(bundle.getString("management-type-not-found"));
}
}