added runAfterProcessing to getRelatedNodes, for modifying collections of entities before they are sent in the response