*/
protected String serialize(final int command, final Object object) {
try {
ServerSerializationStreamWriter streamWriter = new ServerSerializationStreamWriter(this.createSerializationPolicy());
streamWriter.prepareToWrite();
streamWriter.writeInt(command);
streamWriter.writeObject(object);
return streamWriter.toString();
} catch (final SerializationException serializationException) {
throw new RuntimeException("Unable to serialize object, message: " + serializationException.getMessage());
}