use xml configuration and Groovy DSL configuration.