code: protected Process getSubflow(Microservice service) throws ActivityException {
          AssetVersionSpec spec = new AssetVersionSpec(service.getSubflow());
          try {
              Process process = ProcessCache.getProcessSmart(spec);
              if (process == null)
                  throw new ActivityException("Subflow not found: " + service.getSubflow());
              return process;
          }
          catch (DataAccessException ex) {
              throw new ActivityException(ex.getMessage(), ex);
          }
      }
docs: Can be a process or template.