throw new RegainException("Class for tag " + namespace + ":" + tagName
+ " not found: " + className, exc);
}
// Create the tag instance
SharedTag tag;
try {
tag = (SharedTag) tagClass.newInstance();
}
catch (Exception exc) {
throw new RegainException("Creating tag instance for tag " + namespace
+ ":" + tagName + " could not be created: " + className, exc);
}
// Set the params
int pos = 0;
while (mParamRegex.match(params, pos)) {
String name = mParamRegex.getParen(1);
String value = mParamRegex.getParen(2);
tag.setParameter(name, value);
pos = mParamRegex.getParenEnd(0);
}
return tag;