It depends on how that information is reported. In the Groovy world, locks could report an extra data parameter and put whatever they wanted into that field. It was commonly used to report things like which code was used to unlock.
data
@plb44 was just asking about this in his thread: