1. A method of processing a rule, the method comprising: within a layer of an application, receiving the rule at runtime of the layer, the rule defining a condition and defining a functionality associated with the condition, the functionality being provided by the layer; identifying, using a microprocessor, fulfillment of the condition; and executing the functionality based on the identification of the fulfillment of the condition.