code used to create and manage joomla tontine component