private void doResourceSetup() {
        if ( null == resourceSetup.get() || !resourceSetup.get() ) {
            // t.doExecute(new OpenSessionCallback() {
            //
            // @Override
            // public void execute() {
            final Annotation[] annotations = context.getTestMethod().getAnnotations();
            for ( Annotation annotation : annotations ) {
                final PerThreadSetup perThread = annotation.annotationType().getAnnotation(PerThreadSetup.class);
                if ( null != perThread ) {
                    dynamicTestProcessor.executeScript(context, annotation);
                }
            }
        }
        // });
        resourceSetup.set(true);
    }