public void doGet(...) {
//obtain or create the current roster request
final Future<ArrayList<String>> localRosterRequest = getLocalRosterRequest();
//do other things
//wait up to two seconds for data from the roster request
final Boolean hasAccess = localRosterRequest.get(2, TimeUnit.SECONDS).contains(user.toLowerCase());
//etc
}