Added a detail property for messages(Java) and updated metalisxAlert(JavaScript) to handle the detail.