code: public void writeExternal(ObjectOutput out) throws IOException
     {
        byte[] buf = serverUrl.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buf.length);
        out.write(buf);
  
        buf = dbScriptPath.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buf.length);
        out.write(buf);
  
        buf = dbUserName.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buf.length);
        out.write(buf);
  
        buf = dbPassword.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buf.length);
        out.write(buf);
  
        out.writeInt(connProps.size());
        for (Entry<String, String> entry : connProps.entrySet())
        {
           buf = entry.getKey().getBytes(Constants.DEFAULT_ENCODING);
           out.writeInt(buf.length);
           out.write(buf);
  
           buf = entry.getValue().getBytes(Constants.DEFAULT_ENCODING);
           out.writeInt(buf.length);
           out.write(buf);
        }
     }
docs: {@inheritDoc}