private Collection<ActionReference> findActions(final String family, final Set<ActionReference> actions,
final Container container, final Locale locale, final FamilyBundle familyBundle) {
final ContainerComponentRegistry registry = container.get(ContainerComponentRegistry.class);
return registry
.getServices()
.stream()
.flatMap(s -> s.getActions().stream())
.filter(s -> s.getFamily().equals(family))
.filter(s -> actions
.stream()
.anyMatch(e -> s.getFamily().equals(e.getFamily()) && s.getType().equals(e.getType())
&& s.getAction().equals(e.getName())))
.map(s -> new ActionReference(s.getFamily(), s.getAction(), s.getType(),
familyBundle.actionDisplayName(s.getType(), s.getAction()).orElse(s.getAction()),
propertiesService
.buildProperties(s.getParameters(), container.getLoader(), locale, null)
.collect(toList())))
.collect(toList());
}