code: public void put(TableKelp table, 
                  StreamSource ss, 
                  PutType putType,
                  Result<Boolean> result)
    {
      if (ss == null) {
        result.ok(false);
        return;
      }
  
      try (InputStream is = ss.getInputStream()) {
        if (is.available() < 1) {
          System.err.println("BAD_STREAM: " + is + " " + ss + " " + System.identityHashCode(ss) + " " + table); 
          throw new IOException(L.l("unexpected empty stream {0} for {1} [{2}]",
                                    is, table, AmpSystem.currentManager()));
        }
        
        table.put(is, putType, result);
      } catch (Throwable e) {
        e.printStackTrace();
        result.fail(e);
      }
    }
docs: XXX: permissions