testSecurity = getTestClass().getJavaClass().getAnnotation(TestSecurity.class);
}
// no security to run as, just create a normal statement
if (testSecurity == null ||
(testSecurity.authorized().length == 0 && testSecurity.unauthorized().length == 0)) {
return createUnsecuredStatement(method);
}
// security roles specified, create separate statements for them all
else {
return createSecuredStatementExecutor(method, testSecurity);