Changing cartridge definition class to cartridge definition bean in all rest api cartridge methods