if(keyAttribute != null)
{
TypeBinding attributeType = resolveTypeBinding(keyType);
AttributeHandler attributeHandler = new PropertyHandler(entryInfo.getProperty("key"), keyType);
String attrNs = keyAttribute.namespace();
if(JBossXmlConstants.DEFAULT.equals(attrNs))
attrNs = defaultNamespace;
AttributeBinding keyBinding = new AttributeBinding(schemaBinding, new QName(attrNs, keyAttribute.name()), attributeType, attributeHandler);
keyBinding.setRequired(true);
entryType.addAttribute(keyBinding);