Wollongong can prosper from a future without coal, Flannery says