docs: private Object getTargetObject(Object target) {
          Data targetData;
          if (target instanceof Portable) {
              targetData = ss.toData(target);
              if (targetData.isPortable()) {
                  return targetData;
              }
          }
          if (target instanceof Data) {
              targetData = (Data) target;
              if (targetData.isPortable() || targetData.isJson()) {
                  return targetData;
              } else {
                  // convert non-portable Data to object
                  return ss.toObject(target);
              }
          }
  
          return target;
      }