Added the PathContext class for keeping track of the path and any object that resolves it.