4243444546474849505152535455
try { fromXML = xstream.fromXML(toString); } catch (Exception e) { GatewayService.log.error(e); Erro erro = new Erro(); erro.setCodigo("EINV"); erro.setMensagem("Erro de parse do xml: " + toString); erro.setDetalhes("EINV"); return erro; } return fromXML; }
5657585960616263646566
public Retorno getRetorno() throws Exception { Object object = toObject(); Transacao transacao = null; Erro erro = null; Class<? extends Object> type = object.getClass(); if(type.isAssignableFrom(Transacao.class)) { transacao = (Transacao) object; }