adding inject method to RelationshipState.