class VerbaGestaoON extends BaseBusiness {

	private void validaPeriodoVerbaGestao(FsoVerbaGestao verbaGestao)
			throws ApplicationBusinessException{

		if (verbaGestao != null && verbaGestao.getIndConvEspecial() != null
				&& verbaGestao.getIndConvEspecial()
				&& verbaGestao.getDtIniConv() == null) {
			throw new ApplicationBusinessException(
					CadastroVerbaGestaoONExceptionCode.MENSAGEM_CAMPO_OBRIGATORIO_DATA_INICIAL);
		}

		if (verbaGestao == null || verbaGestao.getDtIniConv() == null
				|| verbaGestao.getDtFimConv() == null) {
			return;
		}

		if (verbaGestao.getDtIniConv().after(verbaGestao.getDtFimConv())) {
			throw new ApplicationBusinessException(
					CadastroVerbaGestaoONExceptionCode.DATA_INICIAL_MAIOR_QUE_FINAL_VERBA_GESTAO);
		}
	}

}