public void load(PolicyMappings policyMappings){
  ASN1Sequence policyMappingsSeq=(ASN1Sequence)policyMappings.toASN1Primitive();
  ASN1Encodable[] asn1EncArray=policyMappingsSeq.toArray();
  PolicyMapping[] policyMappingsArray=new PolicyMapping[asn1EncArray.length];
  for (int i=0; i < asn1EncArray.length; i++) {
    policyMappingsArray[i]=PolicyMapping.getInstance(asn1EncArray[i]);
  }
  Arrays.sort(policyMappingsArray,new IssuerDomainPolicyComparator());
  data=new Object[policyMappingsArray.length][2];
  int i=0;
  for (  PolicyMapping policyMapping : policyMappingsArray) {
    data[i][0]=policyMapping;
    data[i][1]=policyMapping;
    i++;
  }
  fireTableDataChanged();
}

public void load ( PolicyMappings policyMappings ) { ASN1Sequence policyMappingsSeq = ( ASN1Sequence ) policyMappings . toASN1Primitive ( ) ; ASN1Encodable [ ] asn1EncArray = policyMappingsSeq . toArray ( ) ; PolicyMapping [ ] policyMappingsArray = new PolicyMapping [ asn1EncArray . length ] ; for ( int i = 0 ; i < asn1EncArray . length ; i ++ ) { policyMappingsArray [ i ] = PolicyMapping . getInstance ( asn1EncArray [ i ] ) ; } Arrays . sort ( policyMappingsArray , new IssuerDomainPolicyComparator ( ) ) ; data = new Object [ policyMappingsArray . length ] [ 2 ] ; int i = 0 ; for ( PolicyMapping policyMapping : policyMappingsArray ) { data [ i ] [ 0 ] = policyMapping ; data [ i ] [ 1 ] = policyMapping ; i ++ ; } fireTableDataChanged ( ) ; }
load the policymappingstablemodel with policy mappings .
