*/
private void addEjbReferencesToWar(File theWar)
{
try
{
EarArchive ear = new DefaultEarArchive(srcFile);
ApplicationXml appXml = ear.getApplicationXml();
Iterator ejbModules = appXml.getEjbModules();
while (ejbModules.hasNext())
{
String module = (String) ejbModules.next();
EjbArchive ejbArchive = ear.getEjbModule(module);
EjbJarXml descr = ejbArchive.getEjbJarXml();
VendorEjbDescriptor vendorDescr = descr.getVendorDescriptor();
if (vendorDescr == null)
{
throw new BuildException("Failed to find vendor "