code: public <T> T deserialise(final Class<T> clazz, final InputSource source)
  	{
  		final Object obj = deserialise(source);
  
  		if (clazz.isInstance(obj))
  			return clazz.cast(obj);
  		else
  			throw new JAXBRuntimeException("XML deserialised to " + obj.getClass() + ", could not cast to the expected " + clazz);
  	}
docs: Deserialise an input and cast to a particular type
  
  @param clazz
  @param source
  
  @return