//now replace with the differences.
COSArray differences = (COSArray)encoding.getDictionaryObject( COSName.DIFFERENCES );
int currentIndex = -1;
for( int i=0; differences != null && i<differences.size(); i++ )
{
COSBase next = differences.getObject( i );
if( next instanceof COSNumber )
{
currentIndex = ((COSNumber)next).intValue();
}
else if( next instanceof COSName )