Added the possibility to pass a context along the getNode method.