final List<WSHandlerResult> handlerResults =
CastUtils.cast((List<?>) messageContext.get(WSHandlerConstants.RECV_RESULTS));
List<WSSecurityEngineResult> signedResults = new ArrayList<WSSecurityEngineResult>();
if (handlerResults != null && handlerResults.size() > 0) {
WSHandlerResult handlerResult = handlerResults.get(0);
List<WSSecurityEngineResult> results = handlerResult.getResults();
final List<Integer> signedActions = new ArrayList<Integer>(2);
signedActions.add(WSConstants.SIGN);
signedActions.add(WSConstants.UT_SIGN);
signedResults.addAll(WSSecurityUtil.fetchAllActionResults(results, signedActions));