Returntype changed from Document to String (is to be configured with
faces-config.xml) also all the first outcommented code is deleted.