model = reader.convertFromOWL(new FileInputStream(xmlFile));
}
if (model != null)
{
BioPAXLevel level = model.getLevel();
if (level == BioPAXLevel.L2)
{
root = new BioPAXL2Graph(model);
BioPAXL2Reader reader = new BioPAXL2Reader(model);
reader.createGraph((BioPAXL2Graph) root);