class ApimlLogger {

    public Message log(String key, Object... parameters) {
        ObjectUtil.requireNotNull(key, "key can't be null");
        ObjectUtil.requireNotNull(parameters, "parameters can't be null");

        if (messageService != null) {
            Message message = messageService.createMessage(key, parameters);
            log(message);
            return message;
        }

        return null;
    }

    public  ApimlLogger(Class<?> clazz, MessageService messageService);

}