* @param tbMatrix
*/
private void populateContinuousNexmlMatrix(org.nexml.model.ContinuousMatrix xmlMatrix,
ContinuousMatrix tbMatrix) {
List<org.nexml.model.Character> characterList = xmlMatrix.getCharacters();
OTUs xmlOTUs = xmlMatrix.getOTUs();
for ( MatrixRow tbRow : tbMatrix.getRowsReadOnly() ) {
List<MatrixElement> elements = tbRow.getElements();
OTU xmlOTU = getOTUById(xmlOTUs, tbRow.getTaxonLabel().getId());
if ( characterList.size() <= MAX_GRANULAR_NCHAR && xmlOTUs.getAllOTUs().size() <= MAX_GRANULAR_NTAX ) {
for ( int elementIndex = 0; elementIndex < tbMatrix.getnChar(); elementIndex++ ) {
ContinuousMatrixElement tbCell = (ContinuousMatrixElement)elements.get(elementIndex);
MatrixCell<Double> xmlCell = xmlMatrix.getCell(xmlOTU, characterList.get(elementIndex));
xmlCell.setValue(tbCell.getValue());
attachTreeBaseID((Annotatable)xmlCell,tbCell,DiscreteMatrixElement.class);