[#47] Updated code according to newest changes in emuLib

contextPool is not a singleton anymore