Each document has an ApplicationMapping. The ApplicatioMapping is a key-value pair that maps application id/instance id to a Java class name. This is used to route paper events to the appropriate Java class instance.
public class ApplicationMapping;
ApplicationMap.cs