code: private void deployXOUnits(Bundle bundle) {
          Enumeration<?> e = bundle.findEntries("META-INF", "xo.xml", false); //$NON-NLS-1$ , $NON-NLS-2$
          if (e != null) {
              if (LOGGER.isInfoEnabled()) {
                  LOGGER.info("Deploying XO units in bundle '{}'", bundle.getSymbolicName());
              }
              List<XOManagerFactory> xoManagerFactories = new LinkedList<>();
              while (e.hasMoreElements()) {
                  URL xoUnitUrl = (URL) e.nextElement();
                  List<XOUnit> xoUnits = Collections.emptyList();
                  try {
                      xoUnits = XOUnitFactory.getInstance().getXOUnits(xoUnitUrl);
                  } catch (IOException ioe) {
                      if (LOGGER.isErrorEnabled()) {
                          LOGGER.error("Error while loading XOUnit", ioe);
                      }
                  }
                  for (XOUnit xoUnit : xoUnits) {
                      if (LOGGER.isDebugEnabled()) {
                          LOGGER.debug("Found XOUnit '{}'", xoUnit.getName());
                      }
                      XOManagerFactory xoManagerFactory = new XOManagerFactoryImpl(xoUnit);
                      Dictionary<String, Object> p = new Hashtable<>();
                      p.put("name", xoUnit.getName());
                      bundle.getBundleContext().registerService(XOManagerFactory.class, xoManagerFactory, p);
                      xoManagerFactories.add(xoManagerFactory);
                      if (LOGGER.isDebugEnabled()) {
                          LOGGER.debug("Registered service for XOUnit '{}'", xoUnit.getName());
                      }
                  }
              }
              this.registeredXOManagerFactories.put(Long.valueOf(bundle.getBundleId()), xoManagerFactories);
          }
      }
docs: /*
  helper