101102103104105106107108109110111
if (photoNodes != null) { numPhotos = photoNodes.getLength(); } for (int i = 0; i < numPhotos; i++) { currentPhoto = this.getPhotoFromPhotoElem((Element)photoNodes.item(i)); pp.addPhoto(currentPhoto); } cp.setPhotoPackage(pp); } } return cp;