src/libs/Module.js
function setInstance(sModuleId, sIdInstance, oInstance) {
  const oModules = getModules();
  var oModule = oModules[sModuleId];
  if (!oModule) {
    fpThrowErrorModuleNotRegistered(sModuleId, true);
  }
  oModule.instances[sIdInstance] = oInstance;
  return oModule;
}
function setInstance(sModuleId, sIdInstance, oInstance) {
  const oModules = getModules();
  var oModule = oModules[sModuleId];
  if (!oModule) {
    fpThrowErrorModuleNotRegistered(sModuleId, true);
  }
  oModule.instances[sIdInstance] = oInstance;
  return oModule;
}
Method to set an instance of a module
@param {String} sModuleId
@param {String} sIdInstance
@param {Module} oInstance
@return {Module}