package org.opencb.opencga.core.models.study;

import org.opencb.commons.datastore.core.ObjectMap;
import org.opencb.opencga.core.config.storage.SampleIndexConfiguration;

public class StudyVariantEngineConfiguration {

    private ObjectMap options;
    private SampleIndexConfiguration sampleIndex;

    public StudyVariantEngineConfiguration() {
    }

    public StudyVariantEngineConfiguration(ObjectMap options, SampleIndexConfiguration sampleIndex) {
        this.options = options;
        this.sampleIndex = sampleIndex;
    }

    public ObjectMap getOptions() {
        return options;
    }

    public StudyVariantEngineConfiguration setOptions(ObjectMap options) {
        this.options = options;
        return this;
    }

    public SampleIndexConfiguration getSampleIndex() {
        return sampleIndex;
    }

    public StudyVariantEngineConfiguration setSampleIndex(SampleIndexConfiguration sampleIndex) {
        this.sampleIndex = sampleIndex;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("StudyVariantEngineConfiguration{");
        sb.append("options=").append(options.toJson());
        sb.append(", sampleIndex=").append(sampleIndex);
        sb.append('}');
        return sb.toString();
    }
}

@@ -1120,32 +1120,34 @@
 tion%7B%22);%0A       
+//
  sb.append(%22opti
@@ -1167,16 +1167,34 @@
 (options
+ != null ? options
 .toJson(
@@ -1194,16 +1194,21 @@
 toJson()
+ : %22%22
 );%0A     

Check if options is null #TASK-1289