Key<Character> existingCharacter = objectifyFactory.begin().query(Character.class)
.filter("characterID", character.getCharacterID()).getKey();
if (character.getId() == null &&
existingCharacter != null) {
logger.error("Trying to add character that is already added: {} ({})", character.getName(), character.getCharacterID());
throw new DuplicateCharacterException();
}
}