MarshalledValueOutputStream mvos = null;
Object state = provider.getCurrentState();
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
mvos = new MarshalledValueOutputStream(baos);
mvos.writeObject(state);
mvos.flush();
mvos.close();
return baos.toByteArray();
} catch (Exception ex) {
CoreGroupCommunicationService.this.log.error("getState failed for service " + serviceName, ex);