Undefined Class JRegistry

Got 'Undefined Class JRegistry' calling JComponentHelper::getParams()