Registering object into a TTNodeDirectory. Adding a getParentId method