code: private ArrayList<ConnectionDefinition> processConnectionDefinition(AnnotationRepository annotationRepository,
        ClassLoader classLoader,
        ArrayList<? extends ConfigProperty> configProperty,
        ArrayList<? extends ConfigProperty> plainConfigProperty)
        throws Exception
     {
        ArrayList<ConnectionDefinition> connectionDefinitions = null;
  
        Collection<Annotation> values = annotationRepository
           .getAnnotation(javax.resource.spi.ConnectionDefinition.class);
        if (values != null)
        {
           connectionDefinitions = new ArrayList<ConnectionDefinition>(values.size());
  
           for (Annotation annotation : values)
           {
              ConnectionDefinition cd = attachConnectionDefinition(annotation, classLoader,
                                                                   configProperty, plainConfigProperty);
  
              if (trace)
                 log.tracef("Adding connection definition: %s", cd);
  
              connectionDefinitions.add(cd);
           }
        }
  
        return connectionDefinitions;
     }
docs: Process: @ConnectionDefinition
  @param annotationRepository The annotation repository
  @param classLoader The class loader
  @param configProperty The config properties
  @param plainConfigProperty The plain config properties
  @return The updated metadata
  @exception Exception Thrown if an error occurs