public void load(String fileName) throws Exception {
  if (!fileName.endsWith(".kf") && !fileName.endsWith(".kfml")) {
    throw new Exception("Can only load and run binary or xml serialized KnowledgeFlows " + "(*.kf | *.kfml)");
  }
  if (fileName.endsWith(".kf")) {
    loadBinary(fileName);
  }
 else   if (fileName.endsWith(".kfml")) {
    loadXML(fileName);
  }
}

public void load ( String fileName ) throws Exception { if ( ! fileName . endsWith ( ".kf" ) && ! fileName . endsWith ( ".kfml" ) ) { throw new Exception ( "Can only load and run binary or xml serialized KnowledgeFlows " + "(*.kf | *.kfml)" ) ; } if ( fileName . endsWith ( ".kf" ) ) { loadBinary ( fileName ) ; } else if ( fileName . endsWith ( ".kfml" ) ) { loadXML ( fileName ) ; } }
load a serialized knowledgeflow ( either binary or xml )
