for(int i=0; i<columnCount; i++)
{
UnivariateStats statfield = modelStats.addNewUnivariateStats();
statfield.setField(colInfo[i].getName());
// Counts
Counts counts = statfield.addNewCounts();
BigInteger pom = new BigInteger(String.valueOf(totalFreq[i]));
counts.setTotalFreq(pom);
pom = new BigInteger(String.valueOf(missingData[i]));
counts.setMissingFreq(pom);
pom = new BigInteger(String.valueOf(invalidFreq[i]));
counts.setInvalidFreq(pom);
Extension ext = counts.addNewExtension();
ext.setName("distinctValues");
ext.setValue(String.valueOf(distinctValue[i]));
//DiscrStats
OPTYPE.Enum optype = mPMML.getDataDictionary().getDataFieldArray(i).getOptype();