code: @SuppressWarnings("unchecked")
     protected void associateResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter, Object object)
        throws DeployException
     {
        if (resourceAdapter != null && object != null && object instanceof ResourceAdapterAssociation)
        {
           try
           {
              ResourceAdapterAssociation raa = (ResourceAdapterAssociation)object;
              raa.setResourceAdapter(resourceAdapter);
           }
           catch (Throwable t)
           {
              throw new DeployException(bundle.unableToAssociate(object.getClass().getName()), t);
           }
        }
     }
docs: Associate resource adapter with the object if it implements ResourceAdapterAssociation
  @param resourceAdapter The resource adapter
  @param object The possible association object
  @throws DeployException Thrown if the resource adapter cant be associated