If I try to get the reource type using:
String resourceName = "test.bpmn2"
ResourceType = ResourceType.determineResourceType(resourceName);
...the resource type is not correctly detected, since only ONE default extension is supported (the BPMN2 type is related to the ".bpmn" extension). The ResourceType should have one default extansions and a list of supported extensions fo r the same type. If so, the ResourceType.BPMN2 declaration should be:
/** jBPM BPMN2 Language */
public static final ResourceType BPMN2 = addResourceTypeToRegistry( "BPMN2","jBPM BPMN2 Language","bpmn", "bpmn2" );