src/libs/Module.js
function wrapMethod(oInstance, sName, sModuleId, fpMethod) {
  oInstance[sName] = ( function (sName, fpMethod) {
    return function () {
      var aArgs = copyArray(arguments);
      try {
        return fpMethod.apply(this, aArgs);
      }
      catch (erError) {
        const ErrorHandler = errorHandler();
        ErrorHandler.error(sModuleId, sName, erError);
        return false;
      }
    };
  }(sName, fpMethod));
}
function wrapMethod(oInstance, sName, sModuleId, fpMethod) {
  oInstance[sName] = ( function (sName, fpMethod) {
    return function () {
      var aArgs = copyArray(arguments);
      try {
        return fpMethod.apply(this, aArgs);
      }
      catch (erError) {
        const ErrorHandler = errorHandler();
        ErrorHandler.error(sModuleId, sName, erError);
        return false;
      }
    };
  }(sName, fpMethod));
}
wrapMethod is a method to wrap the original method to avoid failing code.
This will be only called if bDebug flag is set to false.
@param {Object} oInstance
@param {String} sName
@param {String} sModuleId
@param {Function} fpMethod
@private