fix for https://issues.jboss.org/browse/SRAMP-452

https://issues.jboss.org/browse/SRAMP-452