}
OMNode data = child.getFirstOMChild();
if (data.getType() != OMNode.TEXT_NODE) {
continue; // BAD!
}
OMText text = (OMText)data;
if (type.equals(INTEGER)) {
this.put(name, new Integer(text.getText()));
} else if (type.equals(CHAR)) {
this.put(name, (text.getText().charAt(0)));
} else if (type.equals(DOUBLE)) {
this.put(name, new Double(text.getText()));
} else if (type.equals(FLOAT)) {
this.put(name, new Float(text.getText()));
} else if (type.equals(BYTE)) {
this.put(name, text.getText().getBytes()[0]);
} else if (type.equals(SHORT)) {
this.put(name, new Short(text.getText()));
} else if (type.equals(LONG)) {
this.put(name, new Long(text.getText()));
} else if (type.equals(STRING)) {
this.put(name, text.getText());
} else if (type.equals(BYTEARRAY)) {
DataHandler dh = (DataHandler) text.getDataHandler();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
dh.writeTo(baos);
this.put(name, baos.toByteArray());
} catch (IOException e) {