1. An article of manufacture comprising a computer readable storage medium having computer readable instructions tangibly embodied thereon which, when implemented, cause a computer to carry out a plurality of method steps comprising: decomposing a license metric definition into metric-generic and metric-specific logic; compiling the metric-specific logic to generate intermediate code; and interpreting the metric-generic logic and dynamically loading the intermediate code to execute a license entitlement calculation.