Instead of instantiating your own position array, just use the member variable. Then we won't need so many static methods that pass the array around - you can just use the setStartKey and setEndKey method too.  The array gets re-initialized anyway, since this filter is created and used on the server side.