private static String addIDPPPrefix(String expression){
  if (expression == null || expression.length() == 0) {
    return expression;
  }
  if (expression.indexOf("/") == -1) {
    debug.error("IDPPUtils:addIDPPPrefix:Not a valid expression");
    return expression;
  }
  StringBuffer sb=new StringBuffer(100);
  StringTokenizer st=new StringTokenizer(expression,"/");
  while (st.hasMoreTokens()) {
    String temp=(String)st.nextToken();
    String prefixedStr="/" + idppPrefix + ":"+ temp;
    sb.append(prefixedStr);
  }
  return sb.toString();
}

private static String addIDPPPrefix ( String expression ) { if ( expression == null || expression . length ( ) == 0 ) { return expression ; } if ( expression . indexOf ( "/" ) == - 1 ) { debug . error ( "IDPPUtils:addIDPPPrefix:Not a valid expression" ) ; return expression ; } StringBuffer sb = new StringBuffer ( 100 ) ; StringTokenizer st = new StringTokenizer ( expression , "/" ) ; while ( st . hasMoreTokens ( ) ) { String temp = ( String ) st . nextToken ( ) ; String prefixedStr = "/" + idppPrefix + ":" + temp ; sb . append ( prefixedStr ) ; } return sb . toString ( ) ; }
adds prefix " idpp " to the expression . this should be configurable also , need a name space prefix mapper .
