LPS-49135 Add listener factory implementation for ehcache.
LPS-49135 Abstract out common logic
LPS-49135 Better exception handling