public static Tuple2<String, String> getNameAndNamespaceFromString(String nameDotNamespace) {
        if (!nameDotNamespace.contains(".")) {
            return new Tuple2<>(nameDotNamespace, "");
        }
        String name = nameDotNamespace.substring(nameDotNamespace.lastIndexOf(".") + 1);
        String namespace = nameDotNamespace.substring(0, nameDotNamespace.lastIndexOf("."));
        return new Tuple2<>(name, namespace);
    }
Finds the name and namespace from a string with "namespace.name".
namespace may contain dots.
If no namespace is given (".name" or just "name"), the second part of the tuple will be the empty string
If no name is given, the first part of the tuple will be the empty string

@param nameDotNamespace A string consisting of "namespace.name"
@return a Tuple2 with first item being name and second item being namespace
config/src/main/java/com/yahoo/vespa/config/util/ConfigUtils.java