String path = locator.getPath();
String fn = locator.getTypeString().toLowerCase();
if (fn.endsWith(".vcf3")) {
return new VCFWrapperCodec(new VCF3Codec(), genome);
}
if (fn.endsWith(".vcf4")) {
return new VCFWrapperCodec(new VCFCodec(), genome);
} else if (fn.endsWith(".vcf")) {
return new VCFWrapperCodec(getVCFCodec(locator), genome);