public String getMessage(String key) {
    String method = "getMessage";
    log.logStartMethod(method);

    String message = key;
    if (properties.containsKey(key)) {
      message = properties.getProperty(key);
    }

    log.logInfo(method, "errorMessage; " + message);
    log.logEndMethod(method);
    return message;
  }
  private void loadErrorMessage() {
    String method = "loadErrorMessage";
    log.logStartMethod(method);

    try {

      PropertiesFactoryBean loader = new PropertiesFactoryBean();
      loader.setLocation(new ClassPathResource(ERROR_MESSAGE_FILE_LOCATION));
      loader.afterPropertiesSet();

      properties = (Properties) loader.getObject();

    } catch (IOException ioe) {
      log.logError(method, "no se pudo cargar el archivo 'errorMessage.properties'");
    }

    log.logEndMethod(method);
  }