XX-11117 - moved classes in mongo lib, to be shared among plugins