Added support for optional attributes, enabled creating mappers with an ID when the entity does not exist