question: String pidToId ( String pid ) { if ( pid . indexOf ( "|" ) > - 1 ) { return CONFIG_CONTEXT_PREFIX + pid . substring ( 0 , pid . indexOf ( "|" ) ) ; } return CONFIG_CONTEXT_PREFIX + pid ; }
target:  Convert OSGi pid to an ID suitable for addressing the repository