I suggest posting an SSCCE showing us what you have so far. It sounds like you're calling the method incorrectly, but we can't be sure without looking at your code.