code: public long installBundle( final String bundleLocation,
                                 final byte[] bundle )
          throws BundleException
      {
          LOG.info( "Install bundle [" + bundleLocation + "] from byte array" );
          final ByteArrayInputStream inp = new ByteArrayInputStream( bundle );
          try
          {
              return m_bundleContext.installBundle( bundleLocation, inp ).getBundleId();
          }
          finally
          {
              try
              {
                  inp.close();
              }
              catch( IOException e )
              {
                  // ignore.
              }
          }
      }
docs: {@inheritDoc}