int propLen = ent.getPropWidth();
int x = ent.getX() + Constant.SPACING_FOR_COMPONENT_OF_PROPERTY;
int y = ent.getY() - propLen / 2;
for (String prop : ent.getProperties()) {
PropertyArtifact pro = new PropertyArtifact();
Element property = pro.addElement(doc, svgNS, x, y, propLen);
Element text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, prop);
Element child = property;
if (baseURL != null) {
String url = baseURL + "/components/" + ent.getName() + "/properties/" + prop;
child = createLink(property, url);
}
svgRoot.appendChild(child);
svgRoot.appendChild(text);
x += (propLen + Constant.SPACING_FOR_COMPONENT_OF_PROPERTY);
pro.setName(prop);
pro.setContainerName(ent.getName());
}
}