When you say "the parent node" it sounds that there is a "current Umbraco context" the class should be aware of. In that case, the easiest way is probably to register your class with DI and have the DI inject an Umbraco context accessor into your class. Or you could pass an Umbraco context from a controller to your class when creating an instance of the class.