Smart Licensing Using Policy