try {
String alfrescoHost = ConfigurationUtils.getConfigProperty(ParameterKeys.ALFRESCO_HOST);
WebServiceFactory.setEndpointAddress(alfrescoHost);
TechnicalUser techUser = getUserService().findTechnicalUserAlfresco(ctx.getCaller());
AuthenticationUtils.startSession(techUser.getName(), techUser.getPassword());
} catch (SamlIdpException e) {
LOGGER.error("user service findTechnicalUser not available", e);
throw new OnlineIOException(OnlineIOTechnicalErrorCodes.ALFRESCO_AUTH_ERROR.toString(),
CategoryType.TECHNICAL, e);
} catch (Exception e) {
LOGGER.error("user service exception", e);
throw new OnlineIOException(OnlineIOTechnicalErrorCodes.ALFRESCO_AUTH_ERROR.toString(),
CategoryType.TECHNICAL, e);
}