class LocaleProcessor extends AbstractGameBootProcessor<LocaleMessage> {

  @Override
  protected void validate(LocaleMessage message) throws Exception {
    if (message == null) fail(getResponseContext(NO_MESSAGE), "No message");

    if (isEmpty(message.getLanguageCode())) {
      fail(getResponseContext(LANG_CODE_MISSING, message.getSystemId()), "Missing lang code");
    }

    if (message.getSystemId() == null) {
      fail(getResponseContext(NO_SYSTEM_ID, message.getSystemId()), "Missing system id");
    }
  }

}