code: private static List<Validate> createActivationSpec(Connector cmd,
           List<Failure> failures, ResourceBundle rb, ClassLoader cl)
     {
        List<Validate> result = new ArrayList<Validate>();
  
        if (cmd.getVersion() != Version.V_10 &&
            cmd.getResourceadapter() != null &&
            cmd.getResourceadapter().getInboundResourceadapter() != null &&
            cmd.getResourceadapter().getInboundResourceadapter().getMessageadapter() != null &&
            cmd.getResourceadapter().getInboundResourceadapter().getMessageadapter().getMessagelisteners() != null)
        {
           List<MessageListener> mlMetas = cmd.getResourceadapter()
                 .getInboundResourceadapter().getMessageadapter()
                 .getMessagelisteners();
           if (!mlMetas.isEmpty())
           {
              for (MessageListener mlMeta : mlMetas)
              {
                 if (mlMeta.getActivationspec() != null && mlMeta.getActivationspec().getActivationspecClass() != null
                       && !mlMeta.getActivationspec().getActivationspecClass().equals(XsdString.NULL_XSDSTRING))
                 {
  
                    if (mlMeta.getActivationspec().getConfigProperties() != null &&
                            !mlMeta.getActivationspec().getConfigProperties().isEmpty())
                    {
                       try
                       {
                          Class<?> clazz = Class.forName(mlMeta.getActivationspec().getActivationspecClass().getValue(),
                                                         true, cl);
                          List<ConfigProperty> configProperties = mlMeta.getActivationspec().getConfigProperties();
  
                          ValidateClass vc = new ValidateClass(Key.ACTIVATION_SPEC, clazz, configProperties);
                          result.add(vc);
                       }
                       catch (ClassNotFoundException e)
                       {
                          Failure failure = new Failure(Severity.ERROR,
                                                        rb.getString("uncategorized"),
                                                        rb.getString("as.cnfe"),
                                                        e.getMessage());
                          failures.add(failure);
                       }
                    }
                 }
              }
           }
        }
        return result;
     }
docs: createActivationSpec
  @param cmd connector metadata
  @param failures list of failures
  @param rb ResourceBundle
  @param cl classloador
  @return list of validate objects