}
}
return policiaDTO;
case( TipoPuntoReferencia.OTROS):
PROtrosDTO otrosDTO = new PROtrosDTO();
if(descripcion.getText().trim().length()==0){
Window.alert("Indique la descripcion");
return null;
}
otrosDTO.setDescripcion(descripcion.getText());
otrosDTO.setTipo(id);
otrosDTO.setPuntoEntrada(puntoEntrada.isChecked());
otrosDTO.setPuntoEntrega(puntoEntrega.isChecked());
otrosDTO.setDireccion(direccion.getText());
otrosDTO.setTelefono(telefono.getText());
idDep=Long.valueOf(departamentos.getValue(departamentos.getSelectedIndex()));
for(DepartamentoDTO d:departamentosGlobal){
if(idDep.equals(d.getId())){
otrosDTO.setDepartamento(d);
}
}
idCiu=Long.valueOf(ciudades.getValue(ciudades.getSelectedIndex()));
for(CiudadDTO c:otrosDTO.getDepartamento().getCiudades()){
if(idCiu.equals(c.getId())){
otrosDTO.setCiudad(c);
}
}
return otrosDTO;
default: