Copying buffer (https://issues.jboss.org/browse/JGRP-1598)