As the manual describes to insert a message we use the following command
messageContext.add(InfoMessages.BOOKMARK_INSERT_OK, bookmark.getDescription());
But the add method should only receive a "String message and Object ... params" this generates an error because we are passing a Message type like what would be the correct procedure? I should report this:
messageContext.add(InfoMessages.BOOKMARK_INSERT_OK.getText(),
bookmark.getDescription());
and also:
messageContext.add(InfoMessages.BOOKMARK_INSERT_OK.getText(),
InfoMessages.BOOKMARK_INSERT_OK.getSeverity(), bookmark.getDescription());
Should not there be a method that receives the Message object?