String pidToId(String pid){
  if (pid.indexOf("|") > -1) {
    return CONFIG_CONTEXT_PREFIX + pid.substring(0,pid.indexOf("|"));
  }
  return CONFIG_CONTEXT_PREFIX + pid;
}

String pidToId ( String pid ) { if ( pid . indexOf ( "|" ) > - 1 ) { return CONFIG_CONTEXT_PREFIX + pid . substring ( 0 , pid . indexOf ( "|" ) ) ; } return CONFIG_CONTEXT_PREFIX + pid ; }
convert osgi pid to an id suitable for addressing the repository
