// If package is archived, archive all the assets under it
if ( data.archived ) {
for ( Iterator<AssetItem> iter = item.getAssets(); iter.hasNext(); ) {
AssetItem assetItem = iter.next();
if ( !assetItem.isArchived() ) {
assetItem.archiveItem( true );
assetItem.checkin( data.description );
}
}
} else if ( unarchived ) {
for ( Iterator<AssetItem> iter = item.getAssets(); iter.hasNext(); ) {