static ZipOutputStream zipEntry(ZipEntry entry, ZipOutputStream outputStream) {

    try {
      outputStream.putNextEntry(entry);
    }
    catch (IOException cause) {
      throw newSystemException(cause,"Failed to zip entry [%s]", entry.getName());
    }

    IOUtils.doSafeIo(outputStream::closeEntry);

    return outputStream;
  }
static ZipOutputStream zipEntry ( ZipEntry entry , ZipOutputStream outputStream ) { try { outputStream . putNextEntry ( entry ) ; } catch ( IOException cause ) { throw newSystemException ( cause , "Failed to zip entry [%s]" , entry . getName ( ) ) ; } IOUtils . doSafeIo ( outputStream :: closeEntry ) ; return outputStream ; }
Zips the contents of the individual {@link ZipEntry} to the supplied {@link ZipOutputStream}.

@param entry {@link ZipEntry} to compress and add to the supplied {@link ZipOutputStream}.
@param outputStream {@link ZipOutputStream} used to zip the contents of the given {@link ZipEntry}.
@return the given {@link ZipOutputStream}.
@throws SystemException if {@link ZipEntry} could not be compressed and added to
the supplied {@link ZipOutputStream}.
@see java.util.zip.ZipOutputStream
@see java.util.zip.ZipEntry