if ( this.eventMap.containsKey(id)) {
throw new ParameterException("The id for the event " + id + " is not unique.");
}
final String targetId = events[i].getChild("targetid").getValue();
final String layoutId = events[i].getChild("layoutid").getValue();
FullScreenMapping mapping = new FullScreenMapping();
mapping.copletId = targetId;
mapping.layoutId = layoutId;
this.eventMap.put(id, mapping);
} else {
throw new ParameterException("Unknown event type for event " + id + ": " + type);