When the IllegalArgumentException "Unable to get the metadata definition of metadata \"" + metadataPath + "\"" is thrown, the metadataPath is the parentMetadataPath and the metadataName of the current metadata is missing.