*/
public Node writeDescriptor(Node parent, String nodeName, Descriptor descriptor) {
if (! (descriptor instanceof TimeoutValueDescriptor)) {
throw new IllegalArgumentException(getClass() + " cannot handles descriptors of type " + descriptor.getClass());
}
TimeoutValueDescriptor desc = (TimeoutValueDescriptor) descriptor;
Node timeoutNode = super.writeDescriptor(parent, nodeName, descriptor);
appendTextChild(timeoutNode, EjbTagNames.TIMEOUT_VALUE, Long.toString(desc.getValue()));
appendTextChild(timeoutNode, EjbTagNames.TIMEOUT_UNIT, timeUnitToElement.get(desc.getUnit()));
return timeoutNode;
}