@Override public String runWithSpringApplication(ApplicationContext context) throws Exception { OperationProperties operationProperties = context.getBean(OperationProperties.class); if (Operation.PUSHED == operationProperties.getOperation()) { return getInstalledReport(context); } else if (Operation.SUBMITTED == operationProperties.getOperation()) { YarnClient client = context.getBean(YarnClient.class); return getSubmittedReport(client, operationProperties.isVerbose(), operationProperties.getType(), operationProperties.getHeaders()); } return null; }