Converting BasicMessage to Java.