String fieldtype = field.getType().toString();
if (collect && (fieldtype.startsWith("List") || fieldtype.startsWith("java.util.List"))) {
// make substitutions in template text
StringBuffer buff = new StringBuffer(s_classText);
VariableDeclarationFragment vardecl = (VariableDeclarationFragment)field.fragments().get(0);
replace("$0", descript, buff);
replace("$1", vardecl.getName().getIdentifier(), buff);
replace("$2", NameUtilities.depluralize(NameUtils.toNameWord(basename)), buff);
replace("$3", holder.getTypeName(type), buff);
String cast = field.getType().isParameterizedType() ? "" : ("(" + type + ")");
replace("$4", cast, buff);
replace("$5", getmeth.getName().getIdentifier().substring(3), buff);