Object obj = machine.getArg(0, nArgCount);
if (!(obj instanceof Instance))
{
throw new TypeMismatchException(getSymbol());
}
Instance instance = (Instance)obj;
boolean bReset = false;
if (nArgCount > 1)
{
Object reset = machine.getArg(1, nArgCount);
if (!(reset instanceof Boolean))
{
throw new TypeMismatchException(getSymbol());
}
bReset = ((Boolean)reset).booleanValue();
}