((COSDictionary)ap).setItem(COSName.DEFAULT, aux );
}
COSDictionary map = (COSDictionary)ap;
Map<String, PDAppearanceStream> actuals = new HashMap<String, PDAppearanceStream>();
Map<String, PDAppearanceStream> retval = new COSDictionaryMap<String, PDAppearanceStream>( actuals, map );
for( COSName asName : map.keySet() )
{
COSBase stream = map.getDictionaryObject( asName );
// PDFBOX-1599: this is just a workaround. The given PDF provides "null" as stream
// which leads to a COSName("null") value and finally to a ClassCastExcpetion
if (stream instanceof COSStream)