public NexusBlock findBlockName(String blockName){
  if (blockName.equalsIgnoreCase(TAXA_BLOCK.toString())) {
    nextBlock=TAXA_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(CHARACTERS_BLOCK.toString())) {
    nextBlock=CHARACTERS_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(DATA_BLOCK.toString())) {
    nextBlock=DATA_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(UNALIGNED_BLOCK.toString())) {
    nextBlock=UNALIGNED_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(DISTANCES_BLOCK.toString())) {
    nextBlock=DISTANCES_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(TREES_BLOCK.toString())) {
    nextBlock=TREES_BLOCK;
  }
 else   if (blockName.equalsIgnoreCase(CALIBRATION_BLOCK.toString())) {
    nextBlock=CALIBRATION_BLOCK;
  }
  return nextBlock;
}

public NexusBlock findBlockName ( String blockName ) { if ( blockName . equalsIgnoreCase ( TAXA_BLOCK . toString ( ) ) ) { nextBlock = TAXA_BLOCK ; } else if ( blockName . equalsIgnoreCase ( CHARACTERS_BLOCK . toString ( ) ) ) { nextBlock = CHARACTERS_BLOCK ; } else if ( blockName . equalsIgnoreCase ( DATA_BLOCK . toString ( ) ) ) { nextBlock = DATA_BLOCK ; } else if ( blockName . equalsIgnoreCase ( UNALIGNED_BLOCK . toString ( ) ) ) { nextBlock = UNALIGNED_BLOCK ; } else if ( blockName . equalsIgnoreCase ( DISTANCES_BLOCK . toString ( ) ) ) { nextBlock = DISTANCES_BLOCK ; } else if ( blockName . equalsIgnoreCase ( TREES_BLOCK . toString ( ) ) ) { nextBlock = TREES_BLOCK ; } else if ( blockName . equalsIgnoreCase ( CALIBRATION_BLOCK . toString ( ) ) ) { nextBlock = CALIBRATION_BLOCK ; } return nextBlock ; }
this function returns an enum class to specify what the block given by blockname is .
