1. A method comprising: providing a plurality of policies stored at a server, wherein the policies are applicable to a plurality of target profiles, each target profile having a set of target attributes, wherein each policy comprises a code component comprising a conditional expression having a policy abstraction and a corresponding action that will be performed when the conditional expression is satisfied, and each policy abstraction has a corresponding definition statement; receiving at the server an indication that a first device exists; retrieving a first set of specific target attributes of the first device; determining the first set of specific target attributes of the first device corresponds to a first specific target profile, wherein the target profile corresponds to at least two policies of the plurality of policies; at the server, analyzing a first policy of the plurality of policies to determine whether the first policy is relevant to the first specific target profile with the first set of specific target attributes without inspecting a first code component of the first policy; at the server, upon determining the first policy is relevant to the first specific target profile, inspecting the first code component of the first policy; at the server, when the first policy is determined to be relevant to the first specific target profile, based upon the inspecting of the first code component of the first policy, altering the first code component of the first policy to obtain a modified first code component of the first policy; when the first policy is determined to be relevant to the first specific target profile, transferring the first policy to a first specific target with the first specific target profile by transferring the modified first code component to the first specific target; and when the first policy is determined not to be relevant to the first specific target profile, not transferring the first policy to the first specific target.