//Could all the needed parts for the statementconstruction be collected?
if(res!=null && prop!=null && (resObject!=null || o.compareTo("")!=0)){
//If object is a resource, create a linked statement
//Try to resolve a statement with the same resource and predicate
StatementSelector smtSelector = new StatementSelector(res,prop,null);
StmtIterator stmtIterator = model.listStatements(smtSelector);
//Statement already existing, ->change
if(stmtIterator.hasNext()){
Statement stmt = stmtIterator.nextStatement();