import java.util.Arrays;
import java.util.List;
public class BPMNEngineRepository {
public BPMNEngineRepository() {
List<AbstractBPMNEngine> all = new ArrayList<>(Arrays.asList(new CamundaEngine(), new Camunda710Engine(), new ActivitiEngine(), new JbpmEngine()));
repo.put("ALL", all);
// insert every engine into the map
for (AbstractBPMNEngine engine : repo.getByName("ALL")) {
repo.put(engine.getName(), new ArrayList<>(Arrays.asList(engine)));