class SceCfopRN extends BaseBusiness {

	public void inserirCFOP(SceCfop cfop) throws ApplicationBusinessException {

		SceCfop cfopVerificar = this.getCfopDAO().pesquisarCodigo(
				cfop.getCodigo());

		if (cfopVerificar != null) {
			throw new ApplicationBusinessException(
					SceCfopExceptionCode.ESTE_CFOP_JA_EXISTE, Severity.ERROR,
					cfopVerificar.getCodigo());
		} else {
			this.getCfopDAO().incluir(cfop);
		}
	}

}