public RecordDescriptor get(Object key) { if (!(key instanceof Name)) { return null; } Name name = (Name) key; RecordDescriptor descriptor = super.get(key); if (descriptor == null && name.getNamespaceURI() == null) { // relaxed match, see if we can find the record without the namespace for (Map.Entry<Name, RecordDescriptor> entry : entrySet()) { if (entry.getKey().getLocalPart().equals(name.getLocalPart())) { return entry.getValue(); } } } return descriptor; } }