boolean isScreenshotAppletEnabledAndSupportedByOS(JiraServiceContext jiraServiceContext) { ErrorCollection errorCollection = jiraServiceContext.getErrorCollection(); if (!attachmentManager.isScreenshotAppletEnabled()) { errorCollection.addErrorMessage(getText(ERROR_SCREENSHOT_APPLET_DISABLED)); return false; } if (!attachmentManager.isScreenshotAppletSupportedByOS()) { errorCollection.addErrorMessage(getText(ERROR_SCREENSHOT_APPLET_UNSUPPORTED_OS)); return false; } return true; }