/**
  *
  */
 public static function edit_entity_ajax()
 {
     // Run pre edit hooks
     $entity_data = ArtficatAjaxRequestProcessorUtils::do_before_ajax_edit();
     $custom_processor = $entity_data['entity_name'] . 'AjaxRequestProcessor';
     // Create the entity of we have no errors
     if (!$entity_data['has_errors']) {
         if (class_exists($custom_processor) && method_exists($custom_processor, 'edit_entity_ajax')) {
             $entity_data = call_user_func($custom_processor . '::edit_entity_ajax', $entity_data);
         } else {
             $entity_data = EntityAPI::create_entity($entity_data);
         }
     }
     // Run post edit hooks
     ArtficatAjaxRequestProcessorUtils::do_after_ajax_edit($entity_data);
 }