appendTextChild(subNode, EjbTagNames.DESCRIPTION, descriptor.getSecurityIdentityDescription());
if (descriptor.getUsesCallerIdentity()) {
Node useCaller = subNode.getOwnerDocument().createElement(EjbTagNames.USE_CALLER_IDENTITY);
subNode.appendChild(useCaller);
} else {
RunAsNode runAs = new RunAsNode();
runAs.writeDescriptor(subNode, EjbTagNames.RUNAS_SPECIFIED_IDENTITY, descriptor.getRunAsIdentity());
}
return subNode;
}