final byte[] zeroTermBytes = new byte[stringBytes.length + 1]; System.arraycopy(stringBytes, 0, zeroTermBytes, 0, stringBytes.length); zeroTermBytes[stringBytes.length] = 0;  return zeroTermBytes;
return getZeroTerminatedArray(stringBytes);
    private byte[] getByteArrayForString(String statement, String encoding)            throws UnsupportedEncodingException {        String javaEncoding = null;        if (encoding != null && !"NONE".equals(encoding))                javaEncoding = FBConnectionHelper.getJavaEncoding(encoding);        final byte[] stringBytes;        if (javaEncoding != null)            stringBytes = statement.getBytes(javaEncoding);        else            stringBytes = statement.getBytes();        final byte[] zeroTermBytes = new byte[stringBytes.length + 1];        System.arraycopy(stringBytes, 0, zeroTermBytes, 0, stringBytes.length);        zeroTermBytes[stringBytes.length] = 0;        return zeroTermBytes;    }