((Function) function).setParameters(parseParams(reader));
if (reader.read(current) == 0 || current[0] != '}') {
reader.reset();// set to start of string
char []cb = new char[100];
int nbRead = reader.read(cb);
throw new InvalidVariableException
("Expected } after "+funcName+" function call in "+new String(cb, 0, nbRead));
}
if (function instanceof TestStateListener) {
StandardJMeterEngine.register((TestStateListener) function);
}