code: private String getServiceIdFromMavenBundlePlugin() {
      Plugin bundlePlugin = project.getBuildPlugins().stream()
          .filter(plugin -> StringUtils.equals(plugin.getKey(), MAVEN_BUNDLE_PLUGIN_ID))
          .findFirst().orElse(null);
      if (bundlePlugin != null) {
        Xpp3Dom configuration = (Xpp3Dom)bundlePlugin.getConfiguration();
        if (configuration != null) {
          Xpp3Dom instructions = configuration.getChild("instructions");
          if (instructions != null) {
            Xpp3Dom applicationPath = instructions.getChild(ApplicationPath.HEADER_APPLICATON_PATH);
            if (applicationPath != null) {
              return applicationPath.getValue();
            }
          }
        }
      }
      return null;
    }
docs: Tries to detect the service id automatically from maven bundle plugin definition in same POM.
  @return Service id or null