// TODO: move this to the adapter registry public IFeature getCreateFeatureForPictogramElement(PictogramElement pe) { if (pe != null) { String id = Graphiti.getPeService().getPropertyValue(pe, ICustomTaskFeature.CUSTOM_TASK_ID); if (id != null) { for (FeatureContainer container : containers) { if (container instanceof CustomTaskFeatureContainer) { CustomTaskFeatureContainer ctf = (CustomTaskFeatureContainer) container; if (id.equals(ctf.getId())) { return ctf.getCreateFeature(this); } } } } EObject be = Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(pe); return getCreateFeatureForBusinessObject(be); } return null; }