protected function validateAndCompleteEntity($entityIdentifier, $entityDefinition)
	{
		if(!isset($entityDefinition['label']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'label', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['label'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'label', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityLabels[$entityIdentifier] = $entityDefinition['label'];
		}

		if(!isset($entityDefinition['entityClass']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'entityClass', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['entityClass'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'entityClass', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityClasses[$entityIdentifier] = $entityDefinition['entityClass'];
		}
	}