if (smallImageFileEntryId != 0) {
FileEntry tempFileEntry =
PortletFileRepositoryUtil.getPortletFileEntry(</BUG>
smallImageFileEntryId);
smallImageFileEntryId = addSmallImageFileEntry(
<BUG>userId, groupId, entryId, tempFileEntry.getMimeType(),

tempFileEntry.getTitle(), tempFileEntry.getContentStream());
PortletFileRepositoryUtil.deletePortletFileEntry(
tempFileEntry.getFileEntryId());</BUG>
}

if (smallImageFileEntryId != 0) {
tempSmallImageFileEntry =
PortletFileRepositoryUtil.getPortletFileEntry(
smallImageFileEntryId);
smallImageFileEntryId = addSmallImageFileEntry(
userId, groupId, entryId, tempSmallImageFileEntry.getMimeType(),
tempSmallImageFileEntry.getTitle(),
tempSmallImageFileEntry.getContentStream());
}
