* @param the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, String nodeName, RelationRoleDescriptor descriptor) {
Node roleNode = super.writeDescriptor(parent, nodeName, descriptor);
LocalizedInfoNode localizedNode = new LocalizedInfoNode();
localizedNode.writeLocalizedMap(roleNode, EjbTagNames.DESCRIPTION, descriptor.getLocalizedDescriptions());
if (descriptor.getRelationRoleName() != null) {
appendTextChild(roleNode, EjbTagNames.EJB_RELATIONSHIP_ROLE_NAME,
descriptor.getRelationRoleName());
}