There was a mistake on deprecated createEntity(type, ...) method.