Using fine-grained application domain definitions