/**
  * Enrich all meta data records with the (blob) content from repository.
  *
  * @param cr ContentRelation
  * @throws WebserverSystemException Thrown if access to repository (Feodra) failed.
  */
 private static void enrichWithMetadataContent(final ContentRelationCreate cr) {
   final List<MdRecordCreate> mdRecords = cr.getMetadataRecords();
   if (mdRecords != null) {
     for (final MdRecordCreate mdRecord : mdRecords) {
       if (mdRecord.getContent() == null) {
         final Datastream ds =
             new Datastream(
                 mdRecord.getName(),
                 cr.getObjid(),
                 cr.getProperties().getVersionDate(),
                 mdRecord.getMimeType(),
                 mdRecord.getDatastreamLocation(),
                 mdRecord.getControlGroup());
         mdRecord.setContent(new String(ds.getStream(), Charset.forName("UTF-8")));
       }
     }
   }
 }