@Override
final public void replace(int whatID, int withID) throws ClipsServerException {
checkCommandAccessibility(COMMAND_WRITE);
DirectoryEntity entityWhat = (DirectoryEntity) findEntity(entityClass, whatID);
DirectoryEntity entityWith = (DirectoryEntity) findEntity(entityClass, withID);
if (entityWhat instanceof Surname) {
replaceSurname(entityWhat, entityWith);
} else if (entityWhat instanceof Name) {
replaceName(entityWhat, entityWith);
} else if (entityWhat instanceof Patronymic) {