this.minVersion = minVersion;
}
@Override
public boolean input(JIDContext context, Protocol protocol) {
return protocol.cast(Stream.class).version(this.minVersion) ? true : !context.write(Stream.closeWhenOpening(new ServerError().add(UnSupportedVersion.DETAIL)).setFrom(this.domain).setTo(protocol.getFrom())).close();
}