class CloudUserDataStore implements UserDataStore {

    @Override
    public void getUsersEntityList(final UserListCallback userListCallback) {
        this.restApi.getUserList(new RestApi.UserListCallback() {
            @Override
            public void onUserListLoaded(Collection<UserEntity> usersCollection) {
                userListCallback.onUserListLoaded(usersCollection);
            }

            @Override
            public void onError(Exception exception) {
                userListCallback.onError(exception);
            }
        });
    }

}