So as I far as I understand, hamstering is when a person is trying to rationalize some action that he/she takes so they feel less guilty about it (the term hamstering comes from the part of brainstorming potential reasons that can work). Is this correct?

Edit: By the way, I've already read the definition of hamstering in the glossary, but I'm trying to put it in my own words