protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {
Object result = null;
if (predicate instanceof ArrayPredicate) {
ArrayPredicate arrayPredicate = (ArrayPredicate) predicate;
for (Predicate predicateItem : arrayPredicate.getPredicates()) {
if (predicateItem instanceof EqualsPredicate) {
EqualsPredicate equalsPredicate =
(EqualsPredicate) predicateItem;
if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
return equalsPredicate.getValue();