complate engine.getResource