code: public SVNRepository repository(String urlstr) throws SVNException {
          ISVNAuthenticationManager authenticationManager;
          String userinfo;
          SVNURL url;
          int idx;
          String username;
          String password;
  
          url = SVNURL.parseURIEncoded(urlstr);
          userinfo = url.getUserInfo();
          if (userinfo != null) {
              idx = userinfo.indexOf(':');
              if (idx == -1) {
                  username = userinfo;
                  password = null;
              } else {
                  username = userinfo.substring(0, idx);
                  password = userinfo.substring(idx + 1);
              }
              authenticationManager = authenticationManager(username, password);
          } else {
              authenticationManager = defaultAuthenticationManager == null ? authenticationManager(null, null) : defaultAuthenticationManager;
          }
  
          return repository(url, authenticationManager);
      }
docs: --