Take a look at this thread which discusses some lazy configuration techniques that can help you avoid afterEvaluate including