MULE-8095: Managed object store expiration incorrectly detected on clust...

...er
I see you repeated Thread.sleep(2) many times because you need to ensure that the millisecond changed. Extract that to a private method so that there's no duplicated code. Also, that method should have a meaningful name which makes it clear on why you need to sleep