https://issues.jboss.org/browse/APIMAN-148  https://issues.jboss.org/browse/APIMAN-150