if (subject == null && predicate == null) {
return list;
}
Connection connection = dataSource.getConnection();
Getter getter = null;
try {
getter = connection.get();
if (subject != null) {
getter.subject(new URIImpl(subject));
}
if (predicate != null) {
getter.predicate(new URIImpl(predicate));
}
com.complexible.common.iterations.Iteration<Statement, StardogException> iterator = getter.iterator();
while (iterator.hasNext()) {
list.add(action.processStatement(iterator.next()));
}