class RepositoryModelBuilder {

    public RepositoryModel create(final ComponentManager.AllServices services,
            final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) {
        final List<Family> families = familyMetas
                .stream()
                .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta))
                .collect(toList());
        return new RepositoryModel(families);
    }

}