code: @Override
      public boolean moveTo(WsResource target) throws IOException {
          if (target == null)
              throw new NullPointerException("Can not move to a null resource");
          else if (target.equals(this))
              throw new IllegalArgumentException("Can not move a target to itself");
  
          if (target.getType() == Type.FILE) {
              InputStream is = get();
              if (is == null)
                  return false;
  
              try {
                  target.put(is);
              } finally {
                  is.close();
              }
  
              return true;
          }
  
          return false;
      }
docs: {@inheritDoc}