@Override
    public String get(String name) {
        checkKey(name);

        String value = null;
        String[] keyParts = splitKey(name);

        String ns = registry.getNamespaceURI(keyParts[0]);
        if (ns != null) {
            try {
                XMPProperty prop = xmpData.getProperty(ns, keyParts[1]);

                if (prop != null && prop.getOptions().isSimple()) {
                    value = prop.getValue();
                } else if (prop != null && prop.getOptions().isArray()) {
                    prop = xmpData.getArrayItem(ns, keyParts[1], 1);
                    value = prop.getValue();
                }
                // in all other cases, null is returned
            } catch (XMPException e) {
                // Ignore
            }
        }

        return value;
    }
@Test
    public void get_nullInput_throw() {
        String notInitialized = null;
        assertThrows(PropertyTypeException.class, () -> {
            xmpMeta.get(notInitialized);
        });
    }