Looks like if connectionProvider is null this method fails to do anything, silently. Probably not the best outcome.