Distinguish Internal and External Occurrences

With TMAPI 2.0 it is a little more complicated to distinguish between internal and external occurrences. The example shows how to do it.

// external occurrences
if (occurrence.getDatatype().getReference() == "http://www.w3.org/2001/XMLSchema#anyURI") {
  // do external occurrence stuff
} else {
  // do internal occurrence stuff
}