code: protected void
        createResourceAdapter(DeploymentBuilder builder,
                              String raClz,
                              Collection<org.ironjacamar.common.api.metadata.spec.ConfigProperty> configProperties,
                              Map<String, String> overrides,
                              TransactionSupportEnum transactionSupport,
                              String productName, String productVersion,
                              InboundResourceAdapter ira, CloneableBootstrapContext bootstrapContext)
        throws DeployException
     {
        try
        {
           Class<?> clz = Class.forName(raClz, true, builder.getClassLoader());
           javax.resource.spi.ResourceAdapter resourceAdapter =
              (javax.resource.spi.ResourceAdapter)clz.newInstance();
  
           validationObj.add(new ValidateClass(Key.RESOURCE_ADAPTER, clz, configProperties));
  
           Collection<org.ironjacamar.core.api.deploymentrepository.ConfigProperty> dcps =
              injectConfigProperties(resourceAdapter, configProperties, overrides, builder.getClassLoader());
  
           org.ironjacamar.core.spi.statistics.StatisticsPlugin statisticsPlugin = null;
           if (resourceAdapter instanceof org.ironjacamar.core.spi.statistics.Statistics)
              statisticsPlugin = ((org.ironjacamar.core.spi.statistics.Statistics)resourceAdapter).getStatistics();
  
           TransactionIntegration ti = null;
           if (isXA(transactionSupport))
           {
              ti = transactionIntegration;
           }
           bootstrapContext.setResourceAdapter(resourceAdapter);
           builder.resourceAdapter(new ResourceAdapterImpl(resourceAdapter, bootstrapContext, dcps,
                 statisticsPlugin, productName, productVersion,
                 createInboundMapping(ira, builder.getClassLoader()),
                 is16(builder.getMetadata()), beanValidation,
                 builder.getActivation().getBeanValidationGroups(),
                 ti));
        }
        catch (Throwable t)
        {
           throw new DeployException(bundle.unableToCreateResourceAdapter(raClz), t);
        }
     }
docs: Create resource adapter instance
  @param builder The deployment builder
  @param raClz The resource adapter class
  @param configProperties The config properties
  @param overrides The config properties overrides
  @param transactionSupport The transaction support level
  @param productName The product name
  @param productVersion The product version
  @param ira The inbound resource adapter definition
  @param bootstrapContext the bootstrapContext to use
  @throws DeployException Thrown if the resource adapter cant be created