public XmlElementDescriptor[] getElements() {
    final Collection<XmlElementDescriptor> declarations = buildDeclarationMap().values();
    return declarations.toArray(XmlElementDescriptor.EMPTY_ARRAY);
  }
public XmlElementDescriptor[] getElements()