public function getFolderChildrens(array $input)
  {
    $organizationId = $this->AuthenticationManager->getCurrentUserOrganization('id');
    $file = $this->File->byId($input['id']);
    $fileTree = array('text' => $file->name, 'state' => array('opened' => true) ,  'icon' => $file->icon, 'children' => array());
    $this->File->byParentId($input['id'], $organizationId)->each(function($file) use (&$fileTree)
    {
      if($file->type == 'C')
      {
        array_push($fileTree['children'], array('text' => $file->name, 'icon' => $file->icon));
      }
      else
      {
        array_push($fileTree['children'], array('text' => $file->name, 'icon' => $file->icon));
      }
    });
    //return json_encode(array('fileTree' => $FileTree, 'balanceTypeName' => $this->Lang->get('decima-Fileing::File-management.' . $File->balance_type), 'balanceTypeValue' => $File->balance_type, 'FileTypeName' => $FileType->name, 'FileTypeValue' => $File->File_type_id));
    return json_encode(array('fileTree' => $fileTree));
  }