docs: @Override
      void addToCollection(final ClientCollection col) throws ProponoException {
          setCollection(col);
          final EntityEnclosingMethod method = new PostMethod(col.getHrefResolved());
          getCollection().addAuthentication(method);
          try {
              final Content c = getContents().get(0);
              if (inputStream != null) {
                  method.setRequestEntity(new InputStreamRequestEntity(inputStream));
              } else {
                  method.setRequestEntity(new InputStreamRequestEntity(new ByteArrayInputStream(getBytes())));
              }
              method.setRequestHeader("Content-type", c.getType());
              method.setRequestHeader("Title", getTitle());
              method.setRequestHeader("Slug", getSlug());
              getCollection().getHttpClient().executeMethod(method);
              if (inputStream != null) {
                  inputStream.close();
              }
              final InputStream is = method.getResponseBodyAsStream();
              if (method.getStatusCode() == 200 || method.getStatusCode() == 201) {
                  final Entry romeEntry = Atom10Parser.parseEntry(new InputStreamReader(is), col.getHrefResolved(), Locale.US);
                  BeanUtils.copyProperties(this, romeEntry);
  
              } else {
                  throw new ProponoException("ERROR HTTP status-code=" + method.getStatusCode() + " status-line: " + method.getStatusLine());
              }
          } catch (final IOException ie) {
              throw new ProponoException("ERROR: saving media entry", ie);
          } catch (final JDOMException je) {
              throw new ProponoException("ERROR: saving media entry", je);
          } catch (final FeedException fe) {
              throw new ProponoException("ERROR: saving media entry", fe);
          } catch (final IllegalAccessException ae) {
              throw new ProponoException("ERROR: saving media entry", ae);
          } catch (final InvocationTargetException te) {
              throw new ProponoException("ERROR: saving media entry", te);
          }
          final Header locationHeader = method.getResponseHeader("Location");
          if (locationHeader == null) {
              LOG.warn("WARNING added entry, but no location header returned");
          } else if (getEditURI() == null) {
              final List<Link> links = getOtherLinks();
              final Link link = new Link();
              link.setHref(locationHeader.getValue());
              link.setRel("edit");
              links.add(link);
              setOtherLinks(links);
          }
      }