The matter raised by XXXX is discussed in the following Sutta.
-------------------
"What do you think of this, O monks? Is form permanent or impermanent?"
"Impermanent, O Lord."
"Now, that which is impermanent, is it unsatisfactory or satisfactory?"
"Unsatisfactory, O Lord."
"Now, that which is impermanent, unsatisfactory, subject to change, is it proper to regard that as: 'This is mine, this I am, this is my self'?"
"Indeed, not that, O Lord."
"What do you think of this, O monks? Is feeling permanent or impermanent?"
"Impermanent, O Lord."
"Now, that which is impermanent, is it unsatisfactory or satisfactory?"
"Unsatisfactory, O Lord."
"Now, that which is impermanent, unsatisfactory, subject to change, is it proper to regard that as: 'This is mine, this I am, this is my self'?"
"Indeed, not that, O Lord."
"What do you think of this, O monks? Is perception permanent or impermanent?"
"Impermanent, O Lord."
"Now, what is impermanent, is it unsatisfactory or satisfactory?"
"Unsatisfactory, O Lord."
"Now, that which is impermanent, unsatisfactory, subject to change, is it proper to regard that as: 'This is mine, this I am, this is my self'?"
"Indeed, not that, O Lord."
"What do you think of this, O monks? Are mental formations permanent or impermanent?"
"Impermanent, O Lord."
"Now, those that are impermanent, are they unsatisfactory or satisfactory?"
"Unsatisfactory, O Lord."
"Now, those that are impermanent, unsatisfactory, subject to change, is it proper to regard them as: 'They are mine, this I am, this is my self'?"
"Indeed, not that, O Lord."
"Now what do you think of this, O monks? Is consciousness permanent or impermanent?"
"Impermanent, O Lord."
"Now, what is impermanent, is that unsatisfactory or satisfactory?"
"Unsatisfactory, O Lord."
"Now, what is impermanent, unsatisfactory, subject to change, is it proper to regard it as: 'This is mine, this I am, this is my self'?"
"Indeed, not that, O Lord."
"Therefore, surely, O monks, whatever form, past, future or present, internal or external, coarse or fine, low or lofty, far or near, all that form must be regarded with proper wisdom, according to reality, thus: 'This is not mine, this I am not, this is not my self.'
http://www.accesstoinsight.org/lib/authors/mendis/wheel268.html