fix for https://issues.jboss.org/browse/APIMAN-124

https://issues.jboss.org/browse/APIMAN-124