throw exception if entity is already defined, please