How do I create the following constraints with the Java APIs?
CREATE CONSTRAINT ON (entity:Entity) ASSERT(entity.prefix, entity.name) IS NODE KEY;
CREATE CONSTRAINT ON (entity:Entity) ASSERT exists(entity.name);

I am looking at ConstraintCreator API documentation and cannot figure it out