class MigrationUtils {

    public static List<ShadowUser> getEligibleUsersById(String userId,Map<String, Object> propsMap) {
        List<ShadowUser>shadowUsersList=new ArrayList<>();
        Response response = cassandraOperation.searchValueInList(JsonKey.SUNBIRD, JsonKey.SHADOW_USER, JsonKey.USERIDS, userId,propsMap);
        if(!((List) response.getResult().get(JsonKey.RESPONSE)).isEmpty()) {
            ((List) response.getResult().get(JsonKey.RESPONSE)).stream().forEach(shadowMap->{
                ShadowUser shadowUser=mapper.convertValue(shadowMap,ShadowUser.class);
                if(shadowUser.getClaimStatus()==ClaimStatus.ELIGIBLE.getValue()) {
                    shadowUsersList.add(shadowUser);
                }
            });
        }
        return shadowUsersList;
    }

}