String localName = beanChild.getLocalName();
if (BeansSchemaConstants.ELEM_CONSTRUCTOR_ARG.equals(localName)) {
NamedNodeMap attrs = beanChild.getAttributes();
Node attr = attrs.getNamedItem(BeansSchemaConstants.ATTR_NAME);
if (attr != null && constructorArgName.equals(attr.getNodeValue())) {
IBeansConfig config = BeansCorePlugin.getModel().getConfig(file);
Set<IResourceModelElement> contextElements = getContextElements(config);
for (IResourceModelElement contextElement : contextElements) {
if (constructorArgNameValidator.validateAttributeWithConfig(config, contextElement,
(AttrImpl) attr, (IDOMNode) beanChild, reporter, true, validator)) {
return true;