public Set<JsonUser> loadKnownUsers() throws InterruptedException, ExecutionException, RemoteException, OperationApplicationException {
  Set<JsonUser> users=getUsersFromDb();
  if (users.isEmpty()) {
    LOG.i("Database contains no user; fetching from server");
    users=syncKnownUsers();
  }
  LOG.i(String.format("Found %d users in db",users.size()));
  return users;
}

public Set < JsonUser > loadKnownUsers ( ) throws InterruptedException , ExecutionException , RemoteException , OperationApplicationException { Set < JsonUser > users = getUsersFromDb ( ) ; if ( users . isEmpty ( ) ) { LOG . i ( "Database contains no user; fetching from server" ) ; users = syncKnownUsers ( ) ; } LOG . i ( String . format ( "Found %d users in db" , users . size ( ) ) ) ; return users ; }
loads the known users from local store . if there is no user in db or the application can ' t retrieve from there , then it fetches the users from server
