Fix for APIMAN-4

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