code: private void updateVertexProperty(AtlasVertex vertex, String propertyName, Date newValue) {
          if (newValue != null) {
              Number currValue = vertex.getProperty(propertyName, Number.class);
  
              if (currValue == null || !currValue.equals(newValue.getTime())) {
                  vertex.setProperty(propertyName, newValue.getTime());
              }
          }
      }
docs: /*
  update the given vertex property, if the new value is not-null