<?xml version="1.0"?>
<CreditSimulation>
  <!-- ================================== -->
  <!-- Transition Matrices                -->
  <!-- ================================== -->
  <TransitionMatrices>
    <TransitionMatrix>
      <Name>TransitionMatrix_1</Name>
      <Data t0="0.0" t1="1.0"><!--   Aaa     Aa      A       Baa     Ba      B       C    Default  -->
	0.8588, 0.0976, 0.0048, 0.0000, 0.0003, 0.0000, 0.0000, 0.0000, 
	0.0092, 0.8487, 0.0964, 0.0036, 0.0015, 0.0002, 0.0000, 0.0004, 
	0.0008, 0.0224, 0.8624, 0.0609, 0.0077, 0.0021, 0.0000, 0.0002, 
	0.0008, 0.0037, 0.0602, 0.7916, 0.0648, 0.0130, 0.0011, 0.0019, 
	0.0003, 0.0008, 0.0046, 0.0402, 0.7676, 0.0788, 0.0047, 0.0140, 
	0.0001, 0.0004, 0.0016, 0.0053, 0.0586, 0.7607, 0.0274, 0.0660, 
	0.0000, 0.0000, 0.0000, 0.0100, 0.0279, 0.0538, 0.5674, 0.2535, 
	0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000  
      </Data>
      <!-- specify a full termstructure here -->
    </TransitionMatrix>
  </TransitionMatrices>
  <!-- ================================== -->
  <!-- Entities                           -->
  <!-- ================================== -->
  <!-- regulatory maximum correlation 0.24 corresponds to factor
       loading 0.4898979485566356 -->
  <Entities>
    <Entity>
      <Name>CPTY_A</Name>
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>3</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_B</Name>
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_C</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>5</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_1</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_1</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_2</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_3</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_4</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_5</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_6</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_7</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_8</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_9</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
    <Entity>
      <Name>CPTY_10</Name>
      <!-- no sqrt is taken, these are the actual loadings -->
      <FactorLoadings>0.0</FactorLoadings>
      <TransitionMatrix>TransitionMatrix_1</TransitionMatrix>
      <InitialState>4</InitialState>
    </Entity>
  </Entities>
  <!-- ================================== -->
  <!-- Netting Sets, Risk and PnL         -->
  <!-- ================================== -->
  <NettingSetIds>
    CPTY_A,CPTY_B,CPTY_C
  </NettingSetIds>
  <Risk>
    <Market>N</Market>
    <Credit>Y</Credit>
    <ZeroMarketPnl>N</ZeroMarketPnl>
    <DoubleDefault>Y</DoubleDefault>
    <Evaluation>Analytic</Evaluation>
    <Seed>42</Seed>
    <Paths>1000</Paths>
    <CreditMode>Migration</CreditMode>
    <!-- Migration, Default -->
    <LoanExposureMode>Value</LoanExposureMode>
    <!-- Notional, Value -->
  </Risk>
</CreditSimulation>
