while ((results != null) && (results.hasNext())) {
QuerySolution qs = results.next();
Literal value = qs.getLiteral("value");
Literal description = qs.getLiteral("description");
if (value != null && description != null) {
predefinedParameters.add(new PredefinedParameter(value.getString(), description.getString()));
}
}
port.setPredefinedParameters(predefinedParameters);
}
} finally {