"attribute name '" + keyType.getAttrName() + "' is null. " + "This is usually caused by an invalid attribute type value. " + "The following values are supported: " + Arrays.stream(KeyTypeType.values()).map(KeyTypeType::value).collect(Collectors.joining(", "))); graphElement.setProperty(keyType.getAttrName(), value); if (graphElement.getProperty(keyType.getAttrName()) == null) { graphElement.setProperty(keyType.getAttrName(), typeCastValue(keyType.getDefault().getContent(), keyType.getAttrType()));
switch (keyForType) { case NODE: this.nodeKeys.add(keyType.getAttrName()); break; case EDGE: this.edgeKeys.add(keyType.getAttrName()); break; default: