Source:
public Deployment activate(Connector connector, Activation activation, ClassLoader cl) throws DeployException { log.tracef("Connector=%s", connector); log.tracef("Activation=%s", stripPassword(activation.toString())); try { DeploymentBuilder builder = new DeploymentBuilder(); TransactionSupportEnum transactionSupport = getTransactionSupport(connector, activation); Metadata md = metadataRepository.findByName(activation.getArchive()); builder.identifier(activation.getId()); builder.name(md.getName()); builder.metadata(connector); builder.activation(activation); builder.archive(md.getArchive()); builder.classLoader(cl); builder.classLoaderPlugin(classLoaderPlugin); if (connector.getResourceadapter().getResourceadapterClass() != null) { String bootstrapContextName = null; CloneableBootstrapContext bootstrapContext = null; if (activation != null && activation.getBootstrapContext() != null && !activation.getBootstrapContext().trim().equals("")) { bootstrapContextName = activation.getBootstrapContext(); String bootstrapContextIdentifier = bootstrapContextCoordinator .createIdentifier(connector.getResourceadapter().getResourceadapterClass(), connector.getResourceadapter().getConfigProperties(), bootstrapContextName); bootstrapContext = bootstrapContextCoordinator .createBootstrapContext(bootstrapContextIdentifier, bootstrapContextName); } else { bootstrapContext = bootstrapContextCoordinator.getDefaultBootstrapContext(); } createResourceAdapter(builder, connector.getResourceadapter().getResourceadapterClass(), connector.getResourceadapter().getConfigProperties(), activation.getConfigProperties(), transactionSupport, getProductName(connector), getProductVersion(connector), connector.getResourceadapter().getInboundResourceadapter(), bootstrapContext); } if (activation.getConnectionDefinitions() != null) { for (ConnectionDefinition cd : activation.getConnectionDefinitions()) { createConnectionDefinition(builder, connector, cd, transactionSupport); } } if (activation.getAdminObjects() != null) { for (AdminObject ao : activation.getAdminObjects()) { createAdminObject(builder, connector, ao); } } Deployment deployment = builder.build(); if (is16(deployment.getMetadata())) verifyBeanValidation(deployment); deployment.activate(); if (!deploymentRepository.registerDeployment(deployment)) throw new DeployException("Not registered"); return deployment; } catch (DeployException de) { throw de; } catch (Exception e) { throw new DeployException(e.getMessage(), e); } }

Target:
public Deployment activate(Connector connector, Activation activation, ClassLoader cl) throws DeployException { log.tracef("Connector=%s", connector); log.tracef("Activation=%s", stripPassword(activation.toString())); try { DeploymentBuilder builder = new DeploymentBuilder(); TransactionSupportEnum transactionSupport = getTransactionSupport(connector, activation); Metadata md = metadataRepository.findByName(activation.getArchive()); builder.identifier(activation.getId()); builder.name(md.getName()); builder.metadata(connector); builder.activation(activation); builder.archive(md.getArchive()); builder.classLoader(cl); builder.classLoaderPlugin(classLoaderPlugin); if (connector.getResourceadapter().getResourceadapterClass() != null) { CloneableBootstrapContext bootstrapContext = createBootstrapContext(connector, activation); createResourceAdapter(builder, connector.getResourceadapter().getResourceadapterClass(), connector.getResourceadapter().getConfigProperties(), activation.getConfigProperties(), transactionSupport, getProductName(connector), getProductVersion(connector), connector.getResourceadapter().getInboundResourceadapter(), bootstrapContext); } if (activation.getConnectionDefinitions() != null) { for (ConnectionDefinition cd : activation.getConnectionDefinitions()) { createConnectionDefinition(builder, connector, cd, transactionSupport); } } if (activation.getAdminObjects() != null) { for (AdminObject ao : activation.getAdminObjects()) { createAdminObject(builder, connector, ao); } } Deployment deployment = builder.build(); if (is16(deployment.getMetadata())) verifyBeanValidation(deployment); deployment.activate(); if (!deploymentRepository.registerDeployment(deployment)) throw new DeployException("Not registered"); return deployment; } catch (DeployException de) { throw de; } catch (Exception e) { throw new DeployException(e.getMessage(), e); } }