tmp.delete();
}
}
IAcmeModel model = resource.getModel();
IAcmeSystem sys = model.getSystems().iterator().next();
conf = new Configuration();
conf.setName(sys.getName());
if (sys.getDeclaredTypes().size() > 0) {
IAcmeElementTypeRef<IAcmeSystemType> type = sys.getDeclaredTypes()
.iterator().next();
conf.setArchitecturalStyle(type.getReferencedName());
}
addProperties(conf, sys.getProperties());
createConnectors(sys);
for (IAcmeComponent acmeComp : sys.getComponents()) {
createComponents(acmeComp, false, null, sys, null);
}
checkViolations(conf, resource, model);