private List<Method> findAllBeforeRegistryCreatedMethods() {
    List<Method> methods = new ArrayList<>();

    for (SpecInfo curr : spec.getSpecsTopToBottom()) {
      Method method = ReflectionUtil.getDeclaredMethodByName(curr.getReflection(), "beforeRegistryCreated");
      if (method != null) {
        method.setAccessible(true);
        methods.add(method);
      }
    }

    return methods;
  }
Controls creation, startup and shutdown of the Tapestry container,
and injects specifications with Tapestry-provided objects.

@author Peter Niederwieser
spock-tapestry/src/main/java/org/spockframework/tapestry/TapestryInterceptor.java