code: @Override
  	public Result<CertInfo> toCert(AuthzTrans trans, Result<CertResp> in, String[] trustChain) throws IOException {
  		if(in.isOK()) {
  			CertResp cin = in.value;
  			CertInfo cout = newInstance(API.CERT);
  			cout.setPrivatekey(cin.privateString());
  			String value;
  			if((value=cin.challenge())!=null) {
  				cout.setChallenge(value);
  			}
  			cout.getCerts().add(cin.asCertString());
  			if(trustChain!=null) {
  				for(String c : trustChain) {
  					cout.getCerts().add(c);
  				}
  			}
  			if(cin.notes()!=null) {
  				boolean first = true;
  				StringBuilder sb = new StringBuilder();
  				for(String n : cin.notes()) {
  					if(first) {
  						first = false;
  					} else {
  						sb.append('\n');
  					}
  					sb.append(n);
  				}
  				cout.setNotes(sb.toString());
  			}
  			return Result.ok(cout);
  		} else {
  			return Result.err(in);
  		}
  	}
docs: /* (non-Javadoc)
  @see com.att.authz.certman.mapper.Mapper#toCert(com.att.authz.env.AuthzTrans, com.att.authz.layer.Result)