if (fp instanceof BPMNFeatureProvider) {
// register this custom task ID with the BPMNFeatureProvider;
// this will allow the feature provider to find the correct feature container class
// for this custom task, instead of the generic "Task" feature container
BPMNFeatureProvider bfp = (BPMNFeatureProvider)fp;
try {
bfp.addFeatureContainer(this);
} catch (Exception e) {
e.printStackTrace();
}
}
else