private void writeBulkAttributes(final WriteableDocumentBundle bundle,
final BundleWriterState state,
final Element element,
final XmlWriter writer) throws IOException, BundleWriterException
{
final ElementMetaData metaData = element.getElementType().getMetaData();
final String[] attributeNamespaces = element.getAttributeNamespaces();
for (int i = 0; i < attributeNamespaces.length; i++)
{
final String namespace = attributeNamespaces[i];
final String[] attributeNames = element.getAttributeNames(namespace);
for (int j = 0; j < attributeNames.length; j++)
{
final String name = attributeNames[j];
final Object value = element.getAttribute(namespace, name);
if (value == null)
{
continue;
}
final AttributeMetaData attrMeta = metaData.getAttributeDescription(namespace, name);
if (attrMeta == null)
{
continue;
}