Spine: change the skin of a character according to some condition

Hi, I am working on a project Where i need to change the skin of a character according to some condition. There are 3 part like hair, body, and shoes and I need to change that part. Like when i need to change the hair of the character according to skin array. But what is happening when I am changing the hair the body and shoes is not coming for that character. But i need when i change any part of the character the other part is also come as it is which i have applied previously using setSkinByName.

is there any solution for that?