code: private DependencyInfo createDependencyInfo(Package packageInfo) {
          DependencyInfo dependencyInfo = null;
          if (StringUtils.isNotBlank(packageInfo.getPackageName()) && StringUtils.isNotBlank(packageInfo.getVersion()) &&
                  StringUtils.isNotBlank(packageInfo.getArchitecture())) {
              if (packageInfo.getVersion().contains(Constants.PLUS)) {
                  dependencyInfo = new DependencyInfo(
                          null, MessageFormat.format(DEBIAN_PACKAGE_PATTERN, packageInfo.getPackageName(),
                          packageInfo.getVersion().substring(0, packageInfo.getVersion().lastIndexOf(Constants.PLUS)), packageInfo.getArchitecture()), packageInfo.getVersion());
              } else {
                  dependencyInfo = new DependencyInfo(
                          null, MessageFormat.format(DEBIAN_PACKAGE_PATTERN, packageInfo.getPackageName(),
                          packageInfo.getVersion(), packageInfo.getArchitecture()), packageInfo.getVersion());
              }
          }
          if (dependencyInfo != null) {
              return dependencyInfo;
          } else {
              return null;
          }
      }
docs: /* --- Private methods ---