VariablesSecureApp vars) {
try {
final HashMap<String, String> updateModules = new HashMap<String, String>();
final String user = vars == null ? "0" : vars.getUser();
ImportModuleData.insertLog(conn, user, "", "", "", "Scanning For Updates", "S");
WebServiceImplServiceLocator loc;
WebServiceImpl ws = null;
SimpleModule[] updates;
try {
loc = new WebServiceImplServiceLocator();
ws = loc.getWebService();
final HashMap<String, String> currentlyInstalledModules = getInstalledModules(conn);
updates = ws.moduleScanForUpdates(currentlyInstalledModules);
} catch (final Exception e) {
// do nothing just log the error
log4j.error(e);