Capture information
Data systemInfo = null;
Collector systemInfoCollector = null;
String osName = System.getProperty("os.name");
osName = osName.toUpperCase();
if (osName.indexOf("WIN") >= 0) {
systemInfoCollector = new WindowsSystemInfoCollector(destFolder);
}
else if (osName.indexOf("SUNOS") >= 0) {
systemInfoCollector = new SolarisSystemInfoCollector(destFolder);
} else if (osName.indexOf("LINUX") >= 0) {
systemInfoCollector = new LinuxSystemInfoCollector(destFolder);
}
if(systemInfoCollector !=null){
systemInfo = systemInfoCollector.capture();
}
return systemInfo;