entry.addAttribute(TYPE, BYTE, attrNS);
entry.setText(o.toString());
} else if (o instanceof byte[]) {
entry.addAttribute(TYPE, BYTEARRAY, attrNS);
OMText text = fac.createOMText(new DataHandler(
new ByteArrayDataSource((byte[]) o)), true);
entry.addChild(text);
} else if (o instanceof Float) {
entry.addAttribute(TYPE, FLOAT, attrNS);
entry.setText(o.toString());
} else if (o instanceof Double) {