private function guardValidIdentifier($identifier)
    {
        if (null === $identifier || '' === $identifier) {
            throw new ResolveComponentDataException('No resolved identifier given');
        }

        if (!is_scalar($identifier) && !is_array($identifier)) {
            throw new ResolveComponentDataException('Identifier has to be a scalar or an array');
        }
    }