1. A method implemented on a resource-constrained device to ensure persistence across card acceptance device sessions, the method comprising: creating a logical persistence root for objects associated with an application being started for execution on a resource-constrained device, wherein the logic persistence root comprises a servlet context, wherein the logical persistence root is stored in a persistent memory of the resource constrained device; and wherein said objects are instantiations of at least one object-oriented class; instantiating and storing, upon startup of the application, objects associated with the application in the persistence memory, wherein the objects associated with the application include any one of or any combination of a filter, an event listener, and a load-on-start-up servlet, wherein the objects associated with the application are reachable directly or indirectly through the servlet context, wherein an object is reachable directly through the servlet context if a reference is made to that object through the servlet context, and wherein an object is indirectly reachable through the servlet context if the object is referenced by an object that is reachable directly through the servlet context; moving other objects associated with the application, which are in a non-persistent memory of the resource constrained device and which are reachable directly or indirectly from the logical persistence root, from the non-persistent memory to the persistent memory, wherein an object in the non-persistent memory is reachable directly from the logical persistence root if a reference is made to that object from any one of the objects associated with the application stored in the persistent memory, and wherein an object in the non-persistent memory is indirectly reachable from the logical persistence root if the object is referenced by an object that is reachable directly from the logic persistence root; and storing each object of said objects reachable directly or indirectly from said logical persistence root in the persistent memory in said resource-constrained device, wherein said each object stored in said persistent memory is persistent across the sessions until said application is unloaded and further wherein a session is started on insertion of said resource-constrained device in a card acceptance device and said session is terminated upon removal of said resource-constrained device from said card acceptance device.