private void generateBody() throws WindowsOperationException { SyncmlBody syncmlBody = generateStatuses(); try { appendOperations(syncmlBody); } catch (WindowsOperationException e) { String message = "Error while generating operation of the syncml message."; log.error(message); throw new WindowsOperationException(message); } replySyncmlDocument.setBody(syncmlBody); }