Thank you VERY much, Francesco! It worked with a minor modification.
eventNi.getEventNode().getType()
for (NodeInstance ni : myNodeInstances) {
if(ni instanceof EventNodeInstance){
EventNodeInstance eventNi=(EventNodeInstance)ni;
System.out.println(eventNi.getEventNode().getType());
}
}
Thanks again.
bwj