'Validate any of the provided params.
:raises StackValidationFailed: if any property failed validation.'

def validate(self):

    super(SoftwareDeployment, self).validate()
    server = self.properties[self.SERVER]
    if server:
        res = self.stack.resource_by_refid(server)
        if res:
            user_data_format = res.properties.get('user_data_format')
            if (user_data_format and (not (user_data_format == 'SOFTWARE_CONFIG'))):
                raise exception.StackValidationFailed(message=(_("Resource    %s's    property    user_data_format    should    be    set    to    SOFTWARE_CONFIG    since    there    are    software    deployments    on    it.") % server))
