def saveProfile(self):
     """
     Saves the profile for the current state and returns it.
     
     :return     <XViewProfile>
     """
     return XViewProfile.record(self)
 def saveProfile( self ):
     """
     Saves the profile for the current state and returns it.
     
     :return     <XViewProfile>
     """
     return XViewProfile.record(self)