How many times does the method call itself? Stackoveflow is usually because of runaway recursion.