Factor out some common code in various models and put it in BaseObject.


git-svn-id: http://voronet.francu.com/repos/DEX@928 8d550267-2627-4c68-899f-85492a8dd5ca
Use syntactic sugar function.


git-svn-id: http://voronet.francu.com/repos/DEX@929 8d550267-2627-4c68-899f-85492a8dd5ca