private void addMetadata(Resource subj, URI pred, Value obj, Resource context) throws SailException { if (trx == null) { synchronized (metadata) { metadata.add(vf.createStatement(subj, pred, obj, context)); } } else { storeStatement(subj, pred, obj, context); } }