/** * Attaches to a provided DataChannel. * * @since 3.1 */ protected void attachToChannel(DataChannel channel) { if (channel == null) { throw new NullPointerException("Null channel"); } setChannel(channel); setEntityResolver(channel.getEntityResolver()); }