a method and system for reusing code extensions prepared by a user or developer are disclosed . the extensions are handled as method implementations and stored in the method body , in a persistent storage model . thus when the source code is regenerated after a change is made to the metadata in an object , its method body attribute is retrieved intact and the user / developer does not need to re - enter the extensions into the object to be edited .