public static Table referencedTable(Project project, String dbmsId, String schemaId, String tableId) {
        return referencedSchema(project, dbmsId, schemaId)
            .tables().filter(table -> tableId.equals(table.getId()))
            .findAny().orElseThrow(() -> new SpeedmentConfigException(
                COULD_NOT_FIND_REFERENCED + Table.class.getSimpleName() +
                    WITH_NAME + tableId + "'."
            ));
    }
Returns {@code true} if the specified document and all its ancestors are 
enabled. If at least one ancestor is not enabled, {@code false} is 
returned.

@param document  the document to test
@return          {@code true} if enabled, else {@code false}
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/util/DocumentDbUtil.java