code: public Deployment deploy(URL url, Context context, ClassLoader parent) throws DeployException
     {
        File archive = (File)context.get(Constants.ATTACHMENT_ARCHIVE);
  
        if (archive == null)
           throw new DeployException("Deployment " + url.toExternalForm() + " not found");
  
        FileInputStream fis = null;
        try
        {
           File ijXml = new File(archive, "META-INF/ironjacamar.xml");
  
           if (ijXml.exists())
           {
              IronJacamarParser parser = new IronJacamarParser();
  
              fis = new FileInputStream(ijXml);
              
              XMLStreamReader xsr = XMLInputFactory.newInstance().createXMLStreamReader(fis);
  
              Activation a = parser.parse(xsr);
  
              Connector c = (Connector)context.get(Constants.ATTACHMENT_MERGED_METADATA);
              if (c == null)
                 c = (Connector)context.get(Constants.ATTACHMENT_RA_XML_METADATA);
  
              KernelClassLoader cl = (KernelClassLoader)context.get(Constants.ATTACHMENT_CLASSLOADER);
  
              Merger merger = new Merger();
              Connector actC = merger.merge(c.copy(), a);
  
              activate(actC, a, archive.getName(), archive, cl);
           }
  
           return null;
        }
        catch (Throwable t)
        {
           log.error(t.getMessage(), t);
           throw new DeployException("Deployment " + url.toExternalForm() + " failed", t);
        }
        finally
        {
           if (fis != null)
           {
              try
              {
                 fis.close();
              }
              catch (IOException ignore)
              {
                 // Ignore
              }
           }
        }
     }
docs: {@inheritDoc}