Change getSrcOutRelations to support scope concept