1. A method comprising: processing with a processor an application code to identify at least one application programming interface invoked by the application code; profiling with the processor at least one invocation characteristic of the at least one application programming interface; mapping with the processor the at least one invocation characteristic against at least one policy template to cause a generation of at least one policy for the application code; determining at least one data type collected by the application code; and determining the at least one policy template based on the at least one data type collected.