if(objects != null && !objects.isEmpty()){
Iterator itO = objects.iterator();
while(itO.hasNext()){
Object[] o = (Object[]) itO.next();
EstruturaWebServiceBean ewsBean = new EstruturaWebServiceBean();
ewsBean.setCodigo((o[0] != null) ? Long.valueOf(o[0].toString()) : null);
ewsBean.setNome((o[1] != null) ? o[1].toString() : null);
retorno.add(ewsBean);
}
}