String type = serverDefinition.getType();
if (serverDefinition.isEnabled() && !droolsExists(serverDefinition)) {
if (DROOLS.equals(type)) {
File droolsRoot = serverDefinition.getLocation();
if (droolsRoot.isDirectory()) {
DroolsRuntime runtime = new DroolsRuntime();
boolean startsWithDrools = serverDefinition.getName().startsWith(DROOLS_PREFIX);
String newName = startsWithDrools ? serverDefinition.getName() :
DROOLS_PREFIX + serverDefinition.getName();
runtime.setName(newName);
runtime.setPath(droolsRoot.getAbsolutePath());
DroolsRuntimeManager.recognizeJars(runtime);
runtime.setDefault(true);
droolsRuntimes.add(runtime);
}
}
}
initializeInternal(serverDefinition.getIncludedRuntimeDefinitions(),