JavaSource<?> source = parse(url.openStream());
if (type.isAssignableFrom(source.getClass()))
{
return (T) source;
}
throw new ParserException("Source does not represent a [" + type.getSimpleName() + "], instead was ["
+ source.getClass().getSimpleName() + "] - Cannot convert.");
}