question: private void createNew ( ) { String value ; String name ; log . config ( "" ) ; value = m_txbValueField . getValue ( ) ; if ( value . length ( ) == 0 ) { throw new WrongValueException ( m_txbValueField , Msg . getMsg ( Env . getCtx ( ) , "FillMandatory" ) + m_lblValue . getValue ( ) ) ; } name = m_txbNameField . getText ( ) ; if ( name . length ( ) == 0 ) { throw new WrongValueException ( m_txbNameField , Msg . getMsg ( Env . getCtx ( ) , "FillMandatory" ) + m_lblName . getValue ( ) ) ; } int elementValueId = createElementValue ( value , name , m_chbIsExpense . isChecked ( ) ) ; if ( elementValueId == 0 ) { FDialog . error ( form . getWindowNo ( ) , form , "ChargeNotCreated" , name ) ; return ; } int chargeId = createCharge ( name , elementValueId ) ; if ( chargeId == 0 ) { FDialog . error ( form . getWindowNo ( ) , form , "ChargeNotCreated" , name ) ; return ; } FDialog . info ( form . getWindowNo ( ) , form , "ChargeCreated" , name ) ; }
target:  Create new Chargeable Account.