String fieldClass = getClassName(fieldType);
String fieldClass = TypeGenerator.className(fieldType);
		private void genAltFromTerm(Type type, Alternative alt)	  {		Iterator fields;		int argnr;    		println("  static public " + superClassName + " fromTerm(aterm.ATerm trm)");		println("  {");		println("    java.util.List children = trm.match(pattern);");  		println();		println("    if (children != null) {");    		print  ("      " + superClassName + " tmp = getStatic" + FactoryGenerator.getFactoryClassName(apiName) + 				"().make" + subClassName + "(");		fields = type.altFieldIterator(alt.getId());		argnr = 0;            		while (fields.hasNext()) {		  Field field = (Field) fields.next();		  String fieldType = field.getType();		  String fieldClass = getClassName(fieldType);      		  if (fieldType.equals("str")) {			print("(String) children.get(" + argnr + ")");		  }		  else if (fieldType.equals("int")) {			print("(Integer) children.get(" + argnr + ")");		  }		  else if (fieldType.equals("real")) {			print("(Double) children.get(" + argnr + ")");		  }		  else if (fieldType.equals("term")) {			print("(aterm.ATerm) children.get(" + argnr + ")");		  }		  else {			print(fieldClass + ".fromTerm( (aterm.ATerm) children.get(" + argnr + "))");		  }      		  if (fields.hasNext()) {			print(", ");		  }		  argnr++;		}		println(");");		println("      tmp.setTerm(trm);");		println("      return tmp;");		println("    }"); // endif      		println("    else {");		println("      return null;");		println("    }");		println("  }");	  }