if (!(method instanceof MLFactory)) {
throw new EncogError("Code generation not yet supported for: "
+ method.getClass().getName());
}
final MLFactory factoryMethod = (MLFactory) method;
final String methodName = factoryMethod.getFactoryType();
final String methodArchitecture = factoryMethod
.getFactoryArchitecture();
// header
addInclude("org.encog.ml.MLMethod");
addInclude("org.encog.persist.EncogDirectoryPersistence");