private Table<?> buildMeteWithOptionalJoins(final ExpressionOperator expression) {
        Table<?> table = meta;

        // Add a condition if we should check current status.
        final boolean containsPipelineCondition = NullSafe.test(
                expression,
                expr ->
                        expr.containsField(MetaFields.PIPELINE.getFldName(), MetaFields.PIPELINE_NAME.getFldName()));

        if (containsPipelineCondition) {
            // Only add in the join to meta_processor if we need it
            table = table.leftOuterJoin(metaProcessor)
                    .on(meta.PROCESSOR_ID.eq(metaProcessor.ID));
        }

        final Set<Integer> usedValKeys = identifyExtendedAttributesFields(expression, new HashSet<>());
        if (NullSafe.hasItems(usedValKeys)) {
            // Add 1-* joins to meta_val if we need them.
            table = metaExpressionMapper.addJoins(table, meta.ID, usedValKeys);
        }

        return table;
    }
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