if (record.getNames() != null && record.getNames().size() == 1 && record.getId() != null && record.getId().equals(record.getNames().get(0) + "-hsp")) { record.getAttributes().remove("ID"); record.getAttributes().put("ID", record.getNames()); record.getAttributes().remove("Name"); }
    public static void filterGFF3(BufferedReader in, BufferedWriter out) throws IOException {        Iterator iter = GFF3Parser.parse(in);        while (iter.hasNext()) {            GFF3Record record = (GFF3Record) iter.next();            if (typeToKeep(record.getType())) {                out.write(record.toGFF3());            }        }        out.flush();    }