List<Element> elements = m_vie.getAttributeElements(parentEntity, attributeName, formParent.getElement());
if (!elements.isEmpty()) {
AttributeHandler handler = new AttributeHandler(m_vie, parentEntity, attributeName, m_widgetService);
for (int i = 0; i < elements.size(); i++) {
Element element = elements.get(i);
I_EditWidget widget = m_widgetService.getAttributeInlineWidget(
attributeName,
(com.google.gwt.user.client.Element)element);
if (attribute.isSimpleValue() && (widget != null)) {
Element tempSpan = DOM.createSpan();
tempSpan.setInnerHTML(attribute.getSimpleValues().get(i));
String value = tempSpan.getInnerHTML().trim();
// verify the current value equals the element content
String innerHtml = element.getInnerHTML().trim();
if (innerHtml.equals(value)) {
widget.addValueChangeHandler(new WidgetChangeHandler(handler, i));
formParent.adoptWidget(widget);
} else {
InlineEntityWidget.createWidgetForEntity(
element,
formParent,