public static String removeDeployUri(String uri){
  if ((uri == null) || (uri.length() == 0)) {
    return uri;
  }
  int loc=uri.indexOf("/",1);
  if (loc == -1) {
    return null;
  }
 else {
    return uri.substring(loc);
  }
}

public static String removeDeployUri ( String uri ) { if ( ( uri == null ) || ( uri . length ( ) == 0 ) ) { return uri ; } int loc = uri . indexOf ( "/" , 1 ) ; if ( loc == - 1 ) { return null ; } else { return uri . substring ( loc ) ; } }
removes deployment uri from the pass down string . i . e . from " / opensso / artifactresolver / metaalias / idp " to " / artifactresolver / metaalias / idp " .
