*/
final Iterable<AlignmentAnnotation> matchedAlignmentAnnotations = al
.findAnnotations(seq, dsann.getCalcId(), dsann.label);
- if (matchedAlignmentAnnotations == null
- || !matchedAlignmentAnnotations.iterator().hasNext())
+ boolean found=false;
+ if (matchedAlignmentAnnotations != null)
{
+ for (AlignmentAnnotation matched:matchedAlignmentAnnotations)
+ {
+ if (dsann.description.equals(matched.description))
+ {
+ found=true;
+ break;
+ }
+ }
+ }
+ if (!found) {
result.add(dsann);
if (labelForCalcId != null)
{