1. A method comprising: processing with a processor an application code to identify one or more application programming interfaces invoked by the application code; profiling with the processor one or more invocation characteristics of the one or more application programming interfaces; and mapping with the processor the one or more invocation characteristics against one or more policy templates to cause, at least in part, a generation of at least one policy for the application code.