while ( designates.hasNext() )
{
Designate designate = ( Designate ) designates.next();
// get the OCD reference, ignore the designate if none
DesignateObject object = designate.getObject();
String ocdRef = ( object == null ) ? null : object.getOcdRef();
if ( ocdRef == null )
{
continue;
}