public void balanceSegments(){
  MAcctSchemaElement[] elements=m_acctSchema.getAcctSchemaElements();
  for (int i=0; i < elements.length; i++) {
    MAcctSchemaElement ase=elements[i];
    if (ase.isBalanced())     balanceSegment(ase.getElementType());
  }
}

public void balanceSegments ( ) { MAcctSchemaElement [ ] elements = m_acctSchema . getAcctSchemaElements ( ) ; for ( int i = 0 ; i < elements . length ; i ++ ) { MAcctSchemaElement ase = elements [ i ] ; if ( ase . isBalanced ( ) ) balanceSegment ( ase . getElementType ( ) ) ; } }
balance all segments . - for all balancing segments - for all segment values - if balance < > 0 create dueto / duefrom line overwriting the segment value
