class CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade {

    @Override
    public String replaceSubstitutions(String message) {
        if (message == null)
            return message;

        String newMessage = message;

        Map<String, String> messageFilterMap = customizedTextDao.getCustomizedText();

        for (Map.Entry<String, String> entry : messageFilterMap.entrySet()) {
            newMessage = newMessage.replace(entry.getKey(), entry.getValue());
        }
        return newMessage;
    }

    @Autowired public  CustomizedTextServiceFacadeWebTier(CustomizedTextDao customizedTextDao, MessageSource messageSource);

}