private Condition getStatusCondition(
            final Status currentStatus,
            final Status newStatus) {

        if (currentStatus != null) {
            final byte currentStatusId = MetaStatusId.getPrimitiveValue(currentStatus);
            return meta.STATUS.eq(currentStatusId);
        } else {
            final byte newStatusId = MetaStatusId.getPrimitiveValue(newStatus);
            return meta.STATUS.ne(newStatusId);
        }
    }
Method currently only here for test purposes as a means of bulk loading data.
stroom-meta/stroom-meta-impl-db/src/main/java/stroom/meta/impl/db/MetaDaoImpl.java