1. A method for executing an application in a framework, comprising: in a computing device, receiving an application designed to operate in a first application framework; determining a first set of security permissions used by the application in the first application framework; mapping the first set of security permissions used by the application in the first application framework to a second set of security permissions for a second application framework, wherein mapping the security permissions involves converting each security permission from the first set of security permissions that is not present in the second set of security permissions into a related security permission in the second set of security permissions; configuring the second application framework to provide the second set of security permissions; and executing the application in the second application framework; whereby the application can execute transparently and with substantially similar security behavior in the second application framework.