// Create failure detail list
Vector failureDetailList = null;
if (failureDetailMessage != null)
{
failureDetailList = new Vector();
FailureDetail failureDetail = reporter.createFailureDetail();
failureDetail.setFailureMessage(failureDetailMessage);
failureDetail.setElementLocation(elementLocation);
failureDetailList.add(failureDetail);
}
return createAssertionResult(testAssertion, result, failureDetailList);
}