private void setStatusMsg(
     MessageSource messageSource,
     Locale locale,
     WebServiceResponse response,
     String messageKey,
     int status) {
   response.setMessages(new String[] {messageSource.getMessage(messageKey, null, locale)});
   response.setStatus(status);
 }