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