It is just a hack for https://issues.jboss.org/browse/RF-13232

I will update it once I resolve it.