public String createSession(String sessionType, String inss, String password, Boolean isMock) { be.ehealth.technicalconnector.session.SessionItem sessionItem; String resultSession; try { if (isMock) { resultSession = "Create session not supported for mock";; } else { sessionItem = SessionUtil.createSession(SessionType.valueOf(sessionType), PropertyHandler.getInstance().getPropertiesCopy(), inss, password); resultSession = SAML10Converter.toXMLString(sessionItem.getSAMLToken().getAssertion()); } return(resultSession); } catch (IntegrationModuleException e) { errorMessage = e.getMessage(); throw e; } }