Bug 1050014 - Cannot deploy bundle to EAP domain mode

I think this code would fail (with JBAS014803: Duplicate resource) in case deployment already existed on AS7 server (which is what happens when you deployed version 1 of your bundle with handedover deployment and afterwards you deploy version 2 of same deployment file name but different content)