public CCOpenNI(CCApp theApp) { theApp.addUpdateListener(this); theApp.addDisposeListener(this); try { _myContext = new Context(); License licence = new License("PrimeSense", "0KOIk2JeIBYClPWVnMoRKn5cdY4="); // vendor, key _myContext.addLicense(licence); } catch (GeneralException e) { throw new CCOpenNIException(e); } }