code: public static Package getProcessPackage(Long processId) {
          try {
              if (processId != null) {
                  for (Package pkg : getPackageList()) {
                    if (pkg.containsProcess(processId))
                        return pkg;
                  }
              }
              return Package.getDefaultPackage();
          }
          catch (CachingException ex) {
              logger.severeException(ex.getMessage(), ex);
              return null;
          }
      }
docs: Returns the design-time package for a specified process ID.
  Returns the first match so does not support the same process in multiple packages.
  Also, assumes the processId is not for an embedded subprocess.