The writer spent much of his life outside Ireland , but his fictional universe is firmly rooted in his native Dublin , where his tempestuous early relationship with the Roman Catholic Church is reflected in his alter ego , Stephen Dedalus .