private static Bundle _loadBundle(BundleContext context,String path,InputStream is,boolean closeStream) throws BundleException {
  log(Log.LEVEL_INFO,"add bundle:" + path);
  try {
    return context.installBundle(path,is);
  }
  finally {
    if (closeStream && is != null) {
      try {
        is.close();
      }
 catch (      Throwable t) {
      }
    }
  }
}

private static Bundle _loadBundle ( BundleContext context , String path , InputStream is , boolean closeStream ) throws BundleException { log ( Log . LEVEL_INFO , "add bundle:" + path ) ; try { return context . installBundle ( path , is ) ; } finally { if ( closeStream && is != null ) { try { is . close ( ) ; } catch ( Throwable t ) { } } } }
does not check if the bundle already exists !
