Removed final function getContext from core classes