class CaseGraphFactoryImpl extends BPMNGraphFactoryImpl {

    @Override
    protected List<Command> buildInitialisationCommands() {
        final List<Command> commands = new ArrayList<>();
        final Node<Definition<BPMNDiagram>, Edge> diagramNode =
                (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(getDiagramType()));
        commands.add(graphCommandFactory.addNode(diagramNode));
        final AdHoc adHoc = diagramNode.getContent().getDefinition().getDiagramSet().getAdHoc();
        adHoc.setValue(true);
        return commands;
    }

    public  CaseGraphFactoryImpl();
    @Inject public  CaseGraphFactoryImpl(DefinitionManager definitionManager, FactoryManager factoryManager,
                                RuleManager ruleManager, GraphCommandManager graphCommandManager,
                                GraphCommandFactory graphCommandFactory, GraphIndexBuilder<?> indexBuilder,
                                CustomTaskFactory customTaskFactory,
                                WorkItemDefinitionLookupService workItemDefinitionService);

}