How to programmatically determine if a representation has an associated annotation.
I haven't tried, but I think I could do it this way:
Starting with an EPMDoc, get the representation:
VisualizationHelper vzh = VisualizationHelper.newVisualizationHelper();
QueryResult rep = vzh.getRepresentations((Persistable) epmDoc);
Then get content files in the rep:
ContentHolder holder=ContentHelper.service.getContents(rep);
Vector contents=ContentHelper.getContentListAll(holder);
Iterate through the vector: data=(ApplicationData)contents.get(i);
and check each filename (data.getFileName()) for the .ast extension which seems to be an annotation set.
Seems like there should be some simpler method. Anyone know a better way?

