final public function buildRepresentation($object, $view = null)
    {
        switch (true):
            case $this->checkArrayCollection($object):
                $object = $object->toArray();
            case is_array($object):
                $output = $this->handleArray($object, $view);
                break;
            case is_object($object):
                $output = $this->handleObject($object, $view);
                break;
            case is_null($object):
                $output = null;
                break;
            case is_string($object):
                $output = $object;
                break;
            case is_integer($object):
                $output = $object;
                break;
            case is_bool($object):
                $output = $object;
                break;
            default:
                throw new \Exception('Can not determine how to build representation');
        endswitch;

        return $output;
    }