BZ-1033590: Fixed classloading issues that occurs with EAP modules distribution.