private boolean readProperties(String ServiceNameOveride) { try { properties = new Properties(); FileInputStream is = new FileInputStream(PROPSFILE); properties.load(is); is.close(); connectionData = new ESBConnectionData(); connectionData.setServiceOffered(properties.getProperty("semplest.service")); if (ServiceNameOveride != null) { connectionData.setServiceName(ServiceNameOveride); properties.setProperty("ServiceName", ServiceNameOveride); } else { connectionData.setServiceName(properties.getProperty("ServiceName")); } logger.info( "Configuration for service " + connectionData.getServiceName() + ":" + connectionData.getServiceOffered()); return true; } catch (Exception e) { logger.error("Problem", e); SemplestErrorHandler.logToDatabase( new Exception("SEMplestService.readProperties - " + e.getMessage(), e)); return false; } }