class SimpleXStreamSerializer implements OpenmrsSerializer {

	@Override
	@SuppressWarnings("unchecked")
	public <T> T deserialize(String serializedObject, Class<? extends T> clazz) throws SerializationException {
		
		try {
			return (T) xstream.fromXML(serializedObject);
		}
		catch (XStreamException e) {
			throw new SerializationException("Unable to deserialize class: " + clazz.getName(), e);
		}
	}

	public  SimpleXStreamSerializer();
	public  SimpleXStreamSerializer(XStream customXstream);

}