Make xml or java DSL configurable.