private String getMessageString(ByteBuffer buffer) {
private String getMessageString(ByteBuffer buffer) throws UnsupportedEncodingException {
    private String getMessageString(ByteBuffer buffer) {        byte[] data = new byte[position - buffer.position()];        buffer.get(data);        return new String(data);    }