}
List<PDThreadBead> pdObjects = new ArrayList<PDThreadBead>();
for( int i=0; i<beads.size(); i++)
{
COSDictionary beadDic = (COSDictionary)beads.getObject( i );
PDThreadBead bead = null;
//in some cases the bead is null
if( beadDic != null )
{
bead = new PDThreadBead( beadDic );
}
pdObjects.add( bead );
}
return new COSArrayList<PDThreadBead>(pdObjects, beads);