code: public Connector merge(Connector connector, AnnotationRepository annotationRepository, ClassLoader classLoader)
        throws Exception
     {
        // Process annotations
        if (connector == null || (connector.getVersion() == Version.V_16 || connector.getVersion() == Version.V_17))
        {
           boolean isMetadataComplete = false;
           if (connector != null)
           {
              isMetadataComplete = connector.isMetadataComplete();
           }
  
           if (connector == null || !isMetadataComplete)
           {
              if (connector == null)
              {
                 Connector annotationsConnector = process(annotationRepository, null, classLoader);
                 connector = annotationsConnector;
              }
              else
              {
                 Connector annotationsConnector = process(annotationRepository,
                    ((ResourceAdapter) connector.getResourceadapter()).getResourceadapterClass(),
                    classLoader);
                 connector = connector.merge(annotationsConnector);
              }
           }
        }
  
        return connector;
     }
docs: Scan for annotations in the URLs specified
  @param connector The connector adapter metadata
  @param annotationRepository annotationRepository to use
  @param classLoader The class loader used to generate the repository
  @return The updated metadata
  @exception Exception Thrown if an error occurs