nitpicking: returning deployHost.getValue() here you can avoid both else blocks (IMHO makes code more readable and DRY)