protected boolean beforeDelete(){
  log.saveError("Error",Msg.getMsg(getCtx(),"CannotDelete"));
  return false;
}

protected boolean beforeDelete ( ) { log . saveError ( "Error" , Msg . getMsg ( getCtx ( ) , "CannotDelete" ) ) ; return false ; }
before delete - do not delete
