code: private Process getPackageHandler(ProcessInstance masterInstance, Integer eventType) {
          Process process = getProcessDefinition(masterInstance);
          Process handler = getPackageHandler(process.getPackageName(), eventType);
          if (handler != null && handler.getName().equals(process.getName())) {
              logger.warn("Package handler recursion is not allowed. "
                      + "Define an embedded handler in package handler: " + handler.getLabel());
          }
          return handler;
      }
docs: Finds the relevant package handler for a master process instance.