You could call this process "transference".
A transference is the redirection of feelings from one source to another source. So if you feel angry at your friend, and if you tell your therapist about this, you could start feeling angry at them: this would be called a transference.