Refactor: Move formatter checks into getFormatter method This makes the service method in XDocServlet leaner and easier to read. Change-Id: I5f92a6c205aa15de05acc12fbf65ac42c6906d49 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>