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");
        
        try
        {
           URL[] urls = getUrls(archive);
           KernelClassLoader cl = null;
           if (parentFirst)
           {
              cl = ClassLoaderFactory.create(ClassLoaderFactory.TYPE_PARENT_FIRST, urls, parent);
           }
           else
           {
              cl = ClassLoaderFactory.create(ClassLoaderFactory.TYPE_PARENT_LAST, urls, parent);
           }
           
           context.put(Constants.ATTACHMENT_CLASSLOADER, cl);
  
           return null;
        }
        catch (Throwable t)
        {
           throw new DeployException("Deployment " + url.toExternalForm() + " failed", t);
        }
     }
docs: {@inheritDoc}