Issue #2014009 by kgoel: Replace drupal_container() with Drupal::service() in the serialization module.