Fix for https://issues.jboss.org/browse/ENTESB-2211.