public function validateApplication($application)
    {
        if (!is_string($application)
            || strlen($application) > 256
            || strlen($application) < 1
        ) {
            throw new InvalidArgumentException(
                'Application name must be a non empty string of at most 256 ' .
                'characters',
                400
            );
        }

        return $this;
    }