Gets the states currently held by an object.
a pointer to the Accessible object on which to operate.
a pointer to an StateSet representing an object's current state set.