if (repositoryUrl != null && connectorKind != null) {
TaskRepository repository = TasksUi.getRepositoryManager().getRepository(connectorKind, repositoryUrl);
if (repository != null) {
AbstractRepositoryConnector connector = TasksUi.getRepositoryConnector(connectorKind);
if (connector!=null && connector instanceof RedmineRepositoryConnector) {
try {
configuration = ((RedmineRepositoryConnector)connector).getClientManager().getClient(repository).getConfiguration();
} catch (RedmineStatusException e) {
RedmineUiPlugin.getLogService(getClass()).error(e, "Can't fetch repository configuration"); //$NON-NLS-1$