String attrValue = entry.getValue();
// Treat empty strings as null (needed for compatibility with Oracle as Oracle always treats empty strings as null)
if ("".equals(attrValue)) {
attrValue = null;
}
attrs.add(new SimpleAttribute(entry.getKey(), attrValue));
}
Attribute[] attrArray = new Attribute[attrs.size()];
attrArray = attrs.toArray(attrArray);