in src/main/java/org/apache/sling/discovery/commons/providers/EventHelper.java [30:38]
public static TopologyEvent newInitEvent(final BaseTopologyView newView) {
if (newView==null) {
throw new IllegalStateException("newView must not be null");
}
if (!newView.isCurrent()) {
throw new IllegalStateException("newView must be current");
}
return new TopologyEvent(Type.TOPOLOGY_INIT, null, newView);
}