private static String toOSGICompatibleVersionString(String versionString){
  return versionString.replaceFirst("-",".");
}

private static String toOSGICompatibleVersionString ( String versionString ) { return versionString . replaceFirst ( "-" , "." ) ; }
return a string where the modifier is separated from the version number by a ' . ' instead of a ' - ' . osgi strings want a ' . ' to separate the modifier from the rest of the version number .
