How to read roster object directly?

When I use Spark, I found spark can’t display my rosters when my rosters are over 400 people and 20 roster-groups. Maybe My rosters are too much. So I want to change getRoster() menthod or read rosters in spark. What can I do?

It could be an issue specific to Spark, perhaps you should post in the relevant forum aswell.