int y = ent.getY() + Constant.SPACING_FOR_COMPONENT_OF_SERVICE;
//System.out.println("''''''"+ent.getName() +" '''''' "+ ent.getServices().size());
for (String ser : ent.getServices()) {
ServiceArtifact serve = new ServiceArtifact();
Element polygon = serve.addElement(doc, svgNS, x, y, serHeight);
Element text;
if (!ser.endsWith("Impl"))
text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, ser);
else
text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, "");
Element child = polygon;
if (baseURL != null) {
String url = baseURL + "/components/" + ent.getName() + "/services/" + ser;
child = createLink(polygon, url);
}
svgRoot.appendChild(child);
svgRoot.appendChild(text);
y += (serHeight + Constant.SPACING_FOR_COMPONENT_OF_SERVICE);
serve.setName(ser);
serve.setContainerName(ent.getName());
sers.add(serve);
}
}