public function createClass()
    {
        try {
            $class = $this->createSubClass($this->getDeliveryRootClass());

            $result = [
                'message' => __('Class successfully created.'),
                'delivery-uri' => $class->getUri(),
            ];

            $this->returnSuccess($result);
        } catch (\common_exception_ClassAlreadyExists $e) {
            $result = [
                'message' => $e->getMessage(),
                'delivery-uri' => $e->getClass()->getUri(),
            ];
            $this->returnSuccess($result);
        } catch (\Exception $e) {
            $this->returnFailure($e);
        }
    }