code: protected Object prepareObjectScalar(Object value) { // null allowed
          if (value != null && value instanceof String[] && ((String[]) value).length > 0) {
              return ((String[]) value)[0];
          } else {
              return value;
          }
      }
docs: ---------------