StringBuffer args = new StringBuffer();
StringBuffer argValues = new StringBuffer();
boolean first = true;
for(String p : categories){
RuleParam param;
try {
param = new RuleParam(p);
baseImports.addImport(param.getImportStatement(), "Required for " + param.getName());
int lastDot = param.getImportStatement().lastIndexOf(".");
String ptype = param.getImportStatement().substring(lastDot + 1);
if (!first){
// params.append(", ");
args.append(", ");
argValues.append(", ");
}
params.append(" * @param " + param.getName() + " " + param.getDescription() + "\n");
args.append(ptype + param.getGenericArgs() + " " + param.getName());
argValues.append(param.getName());
first = false;
} catch (DmcValueException e) {
System.err.println(e.toString());
e.printStackTrace();