}
try
{
final String[] splitName = RepositoryUtilities.split(name, "/");
final ContentEntity contentEntity = RepositoryUtilities.getEntity(zipRepository, splitName);
if (contentEntity == null)
{
return false;
}
if (contentEntity instanceof ContentItem)
{
if (contentEntity.delete())
{
metaData.removeEntry(name);
return true;
}
}
else if (contentEntity.delete())
{
// its a directory, so removing is a bit more complicated.
final String[] entryNames = metaData.getManifestEntryNames();
for (int i = 0; i < entryNames.length; i++)
{