Removed duplicate code from EC2Cloud.java