@Override
	protected Object convertFromInternal(Message<?> message, Class<?> targetClass, Object conversionHint) {
		ByteArrayInputStream bis = new ByteArrayInputStream((byte[]) (message.getPayload()));
		Object result = null;
		try {
			result = new ObjectInputStream(bis).readObject();
		}
		catch (Exception e) {
			logger.error(e.getMessage(), e);
			return null;
		}

		return buildConvertedMessage(result, message.getHeaders(),
				MessageConverterUtils.javaObjectMimeType(targetClass));
	}
A {@link org.springframework.messaging.converter.MessageConverter}
to deserialize {@link java.io.Serializable} Java objects.

@author David Turanski
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/integration/bus/converter/SerializedToJavaMessageConverter.java