fixing an API that I broke after https://issues.jboss.org/browse/HORNETQ-1163