final IStructuredDocumentContext context = elementAdapter
.getDocumentContext();
final DTUIViewRoot viewRoot = _validationContext.getViewRootHandle().getCachedViewRoot();
final IAdaptable serviceAdaptable = viewRoot.getServices();
final XMLViewObjectMappingService mappingService = (XMLViewObjectMappingService) serviceAdaptable
.getAdapter(XMLViewObjectMappingService.class);
if (mappingService != null)
{
final ElementData elementData = XMLViewObjectMappingService
.createElementData(elementAdapter.getNamespace(),
elementAdapter.getLocalName(), context,
Collections.EMPTY_MAP);
final ViewObject viewObject = mappingService
.findViewObject(elementData);
// if the corresponding view object is a valueholder, then
// we need to see if you think there a valid conversion
// available
if (viewObject instanceof ComponentInfo
&& ((ComponentInfo) viewObject).getComponentTypeInfo() != null
&& ((ComponentInfo) viewObject).getComponentTypeInfo()
.isInstanceOf(
ComponentFactory.INTERFACE_VALUEHOLDER))
{
final ComponentInfo component = (ComponentInfo) viewObject;
// get the original elementData
final ElementData mappedElementData = mappingService
.findElementData(component);
final String propName = mappedElementData
.getPropertyName(attrAdapter.getLocalName());
if ("value".equals(propName)) //$NON-NLS-1$
{