Egypt could get some guidance from Indonesia where a revolution cut short the military rule and produced a fledgling democracy.