keyed-instance-factory overview
KeyedInstanceFactory is an abstract class that lets you manage one singleton instance per user-defined id. It keeps a reference count for each id: create(...) increments the count by one, and release(...) decrements it by one. When the reference count reaches zero, the instance is released.