1. A method comprising: receiving a request to generate an application from source code; determining whether the request indicates that a class defined by the source code is to be defined as a singleton class or whether the request indicates that the class is to be defined as a non-singleton class; and when the request indicates that the class is to be defined as the singleton class, converting the class to the singleton class.