[OmniFaces utilities] The
getActiveInstances()method returns all active CDI managed bean instances in the given CDI managed bean scope. The map key represents the active CDI managed bean instance and the map value represents the CDI managed bean name, if any. - this utility method exist in OmniFaces 2.0, but it was fixed to work as expected in OmniFaces 2.1 SNAPSHOT.
Map<Object, String> activeRequestScopedBeans = Beans.getActiveInstances(RequestScoped.class);
Map<Object, String> activeSessionScopedBeans = Beans.getActiveInstances(SessionScoped.class);