public IDocumentService getDocumentService()
throws OfficeApplicationException {
if (officeConnection == null)
throw new OfficeApplicationException("Application is not active.");
if (documentService == null)
documentService = new DocumentService(officeConnection,
getServiceProvider());
return documentService;
}