protected function addResource(BaseEntity $entity)
 {
     $this->resources[] = new ControllerResource($this->module, $entity->getShortClassName(), get_class($entity));
 }
 /**
  * @param BaseEntity $entity
  * @return string
  */
 public static function init(BaseEntity $entity)
 {
     return Routing::appLink($entity->getModuleName(), 'new' . $entity->getShortClassName(), array());
 }