// ---- update request to have USING/USING NAMED
if ( null != usingList && usingList.usingIsPresent() )
{
if ( update instanceof UpdateWithUsing )
{
UpdateWithUsing upu = (UpdateWithUsing)update ;
if ( upu.getUsing().size() != 0 || upu.getUsingNamed().size() != 0 || upu.getWithIRI() != null )
throw new UpdateException("SPARQL Update: Protocol using-graph-uri or using-named-graph-uri present where update request has USING, USING NAMED or WITH") ;
for ( Node node : usingList.getUsing() )
upu.addUsing(node) ;
for ( Node node : usingList.getUsingNamed() )
upu.addUsingNamed(node) ;
}
}
sink.send(update);
}