class FASTCodec extends AbstractCodec {

	@Override
	protected boolean doDecode(
			IoSession session,
			IoBuffer in,
			ProtocolDecoderOutput out) throws Exception {
		if (!in.hasRemaining()) {
			return false;
		}
		int position = in.position();
		try {
			if (doRealDecode(session, in, out)) {
				return true;
			}
		} catch (Exception e) {
			logger.error("Can not decode message", e);
		}
		in.position(position);
		return false;
	}

}