public byte[] serialize(DeploymentMessage message) {
			byte[] byteArray = null;
			try {
				byteArray = objectWriter.writeValueAsBytes(message);
			}
			catch (JsonMappingException e) {
				logger.error("Json processing exception when serializing." + e);
			}
			catch (IOException ioe) {
				logger.error("IO processing exception when de-serializing." + ioe);
			}
			return byteArray;
		}
Serialize the deployment message

@param message the deployment message
@return byte array
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/admin/deployment/zk/DeploymentQueue.java