Skip root entity in getPath method (optionally)