FileOutputStream out=new FileOutputStream(logFile);
PrintStream errOut=new PrintStream(out);
if (mProperties != null) {
pds.setParameters(mProperties);
}
boolean thereWereErrors = pds.execute(dir, errOut);
if (thereWereErrors) {
mLog.warning("There were errors during the execution of primary "
+ "data service " + pds.getClass().getName() + ". See log file: "
+ logFile.getAbsolutePath());
}else{