Sramp 507

https://issues.jboss.org/browse/SRAMP-507
I always surround the if cases. This was totally not my code!! . I will check if it is used in the deploy command