Modification of RestHelper, finalizing PDF, XLS export