{
outputStream.close();
}
}
final DocumentMetaDataWriter metaDataWriter = new DocumentMetaDataWriter(bundle.getMetaData());
final ContentItem manifestItem = RepositoryUtilities.createItem
(repository, RepositoryUtilities.splitPath("META-INF/manifest.xml", "/"));
final OutputStream manifestStream = manifestItem.getOutputStream();
try
{
metaDataWriter.writeManifest(manifestStream);
}
finally
{
manifestStream.close();
}
final ContentItem metaDataItem = RepositoryUtilities.createItem
(repository, RepositoryUtilities.splitPath("meta.xml", "/"));
final OutputStream metaDataStream = metaDataItem.getOutputStream();
try
{
metaDataWriter.writeMetaData(metaDataStream);
}
finally
{
metaDataStream.close();
}