for (int i = 0, portsStrLength = portsStr.length; i < portsStrLength; i++) {
String str = portsStr[i];
ports[i] = Integer.valueOf(str);
}
OfficeIntegration officeIntegration = new OfficeIntegration(openOfficePath, ports);
formatterFactory.setOfficeIntegration(officeIntegration);
String openOfficeTimeout = properties.getProperty(PropertiesLoader.CUBA_REPORTING_OPENOFFICE_TIMEOUT);
if (StringUtils.isNotBlank(openOfficeTimeout)) {
officeIntegration.setTimeoutInSeconds(Integer.valueOf(openOfficeTimeout));
}
String displayDeviceAvailable = properties.getProperty(PropertiesLoader.CUBA_REPORTING_OPENOFFICE_DISPLAY_DEVICE_AVAILABLE);
if (StringUtils.isNotBlank(displayDeviceAvailable)) {
officeIntegration.setDisplayDeviceAvailable(Boolean.valueOf(displayDeviceAvailable));
}
}
reporting.setFormatterFactory(formatterFactory);
reporting.setLoaderFactory(