import org.codehaus.jettison.json.JSONObject; //导入方法依赖的package包/类
public List getVariantsGA4GH(final String callSetId, final String start, final String end,
final String chrName) throws Ga4ghResourceUnavailableException {
final ArrayList listCallSetId = new ArrayList<>();
VariantsSearch referenceBasesEntity = null;
final List resultVariantSearch = new ArrayList<>();
final JSONObject jsonObject = new JSONObject();
final String variantSetId;
final int index = callSetId.indexOf('-');
if (index <= 0) {
listCallSetId.add(callSetId + "-0");
variantSetId = callSetId;
} else {
listCallSetId.add(callSetId);
variantSetId = callSetId.substring(0, index);
}
try {
jsonObject.put(Constants.CALL_SET_ID, listCallSetId);