When the sciencemesh app is enabled, it provides the option to OCM-share a resource via ScienceMesh instead of via regular OCM. For this, the user search, as well as the actual OCM sending is handled by a call to a Reva instance.
For the OCM sending, we can configure this using the sharing.managerFactory config option, but for sharee search, we need to add an if statement that diverts the code path if the sciencemesh app is installed.