System.out.println("Wait until all schema objects are available...");
System.out.println();
persistenceManager.refreshSchema(); // This is necessary until schema changes are propagated from the Java Driver to Caffinitas Mappe automatically!
schemaGenerator.forSchemaObjectsAvailable().awaitUninterruptibly();
PersistenceSession session = persistenceManager.createSession();
try
{
// create a user object and persist it