class Utils {

    public static <T extends ServiceConfiguration> T buildServiceConfig(T config, Service service) {
        ServiceDocumentDescription desc = service.getHost().buildDocumentDescription(service);

        config.options = service.getOptions();
        config.maintenanceIntervalMicros = service.getMaintenanceIntervalMicros();
        config.versionRetentionLimit = desc.versionRetentionLimit;
        config.versionRetentionFloor = desc.versionRetentionFloor;
        config.peerNodeSelectorPath = service.getPeerNodeSelectorPath();
        config.documentIndexPath = service.getDocumentIndexPath();

        return config;
    }

    private  Utils();

}