class Message {

	public byte[] encodeBase64() {
		try {
			return Base64.getEncoder().encode(this.getBytes());
		} catch (Exception exp) {
			logError(MODULE_NAME, "Error in encodeBase64", new AgentSystemException(exp.getMessage(), exp));
			return new byte[] {};
		}
	}

	public  Message();
	public  Message(String publisher);
	public  Message(JsonObject json);
	public  Message(byte[] rawBytes);
	public  Message(byte[] header, byte[] data);

}