}
return repository;
}
protected ExecutionContext getExecutionContext() {
ExecutionContextFactory factory = getRepositoryContext().getExecutionContextFactory();
CallbackHandler handler = createCallbackHandler();
try {
String securityDomain = getSecurityDomain();
if (securityDomain != null || getUsername() != null) {
return factory.create(securityDomain, handler);
}
return factory.create();
} catch (LoginException e) {
I18n msg = FederationI18n.unableToCreateExecutionContext;
throw new RepositorySourceException(getName(), msg.text(this.sourceName, securityDomain), e);
}
}