code: function (name, msg, callback) {
          var varType = "int32";     //if the core doesn't specify, assume it's a "uint32"
          //var fnState = (this.coreFnState) ? this.coreFnState.f : null;
          //if (fnState && fnState[name] && fnState[name].returns) {
          //    varType = fnState[name].returns;
          //}
  
          var niceResult = null;
          try {
              if (msg && msg.getPayload) {
                  niceResult = messages.FromBinary(msg.getPayload(), varType);
              }
          }
          catch (ex) {
              logger.error("transformFunctionResult - error transforming response " + ex);
          }
  
          process.nextTick(function () {
              try {
                  callback(niceResult);
              }
              catch (ex) {
                  logger.error("transformFunctionResult - error in callback " + ex);
              }
          });
  
          return null;
      }
docs: Transforms the result from a core function to the correct type.
  @param name
  @param msg
  @param callback
  @returns {null}