public static SimpleCheckoutStarter createWithUriAttributes(Map<String,String> args) throws RuntimeException, UnsupportedEncodingException {
  String url=args.get(URL_ARGUMENT);
  String ref=args.get(REF_ARGUMENT);
  String encoding=args.get(ENCODING_ARGUMENT);
  if (StringUtils.isEmpty(url)) {
    throw new RuntimeException(TfPluginBundle.message(TfPluginBundle.STARTER_ERRORS_SIMPLECHECKOUT_URI_MISSING_GIT_URL));
  }
  if (StringUtils.isNotEmpty(encoding)) {
    url=URLDecoder.decode(url,encoding);
  }
  if (StringUtils.isNotEmpty(ref)) {
    ref=URLDecoder.decode(ref,encoding);
  }
 else {
    ref=StringUtils.EMPTY;
  }
  return createWithGitUrl(url,ref);
}

public static SimpleCheckoutStarter createWithUriAttributes ( Map < String , String > args ) throws RuntimeException , UnsupportedEncodingException { String url = args . get ( URL_ARGUMENT ) ; String ref = args . get ( REF_ARGUMENT ) ; String encoding = args . get ( ENCODING_ARGUMENT ) ; if ( StringUtils . isEmpty ( url ) ) { throw new RuntimeException ( TfPluginBundle . message ( TfPluginBundle . STARTER_ERRORS_SIMPLECHECKOUT_URI_MISSING_GIT_URL ) ) ; } if ( StringUtils . isNotEmpty ( encoding ) ) { url = URLDecoder . decode ( url , encoding ) ; } if ( StringUtils . isNotEmpty ( ref ) ) { ref = URLDecoder . decode ( ref , encoding ) ; } else { ref = StringUtils . EMPTY ; } return createWithGitUrl ( url , ref ) ; }
creates a simplecheckoutstarter object after parsing the uri attributes for the git url and url encoding if provided
