runtimeServices = new HashMap<String, Object>();
}
T runtime = (T) runtimeServices.get(cls.getName());
if (runtime == null) {
KieRuntimes runtimes = ServiceRegistryImpl.getInstance().get(KieRuntimes.class);
KieRuntimeService service = (KieRuntimeService) runtimes.getRuntimes().get(cls.getName());
runtime = (T) service.newKieRuntime(this);
}
return (T) runtime;
}