/**
  * Process the input data and write to the context.
  *
  * @param Context $context
  * @return void
  */
 protected function processInputData(Context $context)
 {
     foreach ($_POST as $fieldName => $value) {
         switch ($fieldName) {
             case 'firstname':
                 $context->setFirstName($value);
                 break;
             case 'lastname':
                 $context->setLastName($value);
                 break;
         }
     }
 }