private String trimPrefix(String val){
  if ((val != null) && (val.startsWith(WSSEConstants.NS_X509) || val.startsWith(WSSEConstants.NS_SMS))) {
    return val;
  }
  int pos=val.indexOf(":");
  if (pos == -1) {
    return val;
  }
 else   if (pos == val.length()) {
    return "";
  }
 else {
    return val.substring(pos + 1);
  }
}

private String trimPrefix ( String val ) { if ( ( val != null ) && ( val . startsWith ( WSSEConstants . NS_X509 ) || val . startsWith ( WSSEConstants . NS_SMS ) ) ) { return val ; } int pos = val . indexOf ( ":" ) ; if ( pos == - 1 ) { return val ; } else if ( pos == val . length ( ) ) { return "" ; } else { return val . substring ( pos + 1 ) ; } }
trim prefix and get the value , e . g , for wsse : x509v3 will return x509v3
