code: private Connector processConnector(AnnotationRepository annotationRepository, ClassLoader classLoader, 
                                        String xmlResourceAdapterClass,
                                        ArrayList<ConnectionDefinition> connectionDefinitions,
                                        ArrayList<ConfigProperty> configProperties,
                                        ArrayList<ConfigProperty> plainConfigProperties,
                                        InboundResourceAdapter inboundResourceadapter,
                                        ArrayList<AdminObject> adminObjs)
        throws Exception
     {
        Connector connector = null;
        Collection<Annotation> values = annotationRepository.getAnnotation(javax.resource.spi.Connector.class);
        if (values != null)
        {
           if (values.size() == 1)
           {
              Annotation annotation = values.iterator().next();
              String raClass = annotation.getClassName();
              javax.resource.spi.Connector connectorAnnotation = (javax.resource.spi.Connector)annotation.getAnnotation();
  
              if (trace)
                 log.trace("Processing: " + connectorAnnotation + " for " + raClass);
  
              connector = attachConnector(raClass, classLoader, connectorAnnotation, connectionDefinitions,
                                          configProperties, plainConfigProperties, inboundResourceadapter, adminObjs);
           }
           else if (values.isEmpty())
           {
              // JBJCA-240
              if (xmlResourceAdapterClass == null || xmlResourceAdapterClass.equals(""))
              {
                 log.noConnector();
                 throw new ValidateException(bundle.noConnectorDefined());
              }
           }
           else
           {
              // JBJCA-240
              if (xmlResourceAdapterClass == null || xmlResourceAdapterClass.equals(""))
              {
                 log.moreThanOneConnector();
                 throw new ValidateException(bundle.moreThanOneConnectorDefined());
              }
           }
        }
        else
        {
           connector = attachConnector(xmlResourceAdapterClass, classLoader, null, connectionDefinitions, null, null,
                                       inboundResourceadapter, adminObjs);
        }
  
        return connector;
     }
docs: Process: @Connector
  @param annotationRepository The annotation repository
  @param classLoader The class loader
  @param xmlResourceAdapterClass resource adpater class name as define in xml
  @param connectionDefinitions
  @param configProperties
  @param plainConfigProperties
  @param inboundResourceadapter
  @param adminObjs
  @return The updated metadata
  @exception Exception Thrown if an error occurs