def add_user_password(username, password, options = {})
      raise ArgumentError, "The new password cannot be nil"   unless password
      raise ArgumentError, "The new username cannot be nil"   unless username
      raise ArgumentError, "The new password cannot be empty" if password.empty?
      raise ArgumentError, "The new username cannot be empty" if username.empty?

      raise Exception, "Cannot add username password, a Software Password already exists for the provided username" if self.has_user_password?(username.to_s)

      add_user_pw_template = {
        'softwareId' => self['id'].to_i,
        'password'   => password.to_s,
        'username'   => username.to_s
      }

      add_user_pw_template['notes'] = options['notes'].to_s if options.has_key?('notes')
      add_user_pw_template['port']  = options['port'].to_i  if options.has_key?('port')

      softlayer_client[:Software_Component_Password].createObject(add_user_pw_template)

      @passwords = nil
    end
def add_user_password(username, password, options = {})
      raise ArgumentError, "The new password cannot be nil"   unless password
      raise ArgumentError, "The new username cannot be nil"   unless username
      raise ArgumentError, "The new password cannot be empty" if password.empty?
      raise ArgumentError, "The new username cannot be empty" if username.empty?

      raise Exception, "Cannot add username password, a Software Password already exists for the provided username" if self.has_user_password?(username.to_s)

      add_user_pw_template = {
        'softwareId' => self['id'].to_i,
        'password'   => password.to_s,
        'username'   => username.to_s
      }

      add_user_pw_template['notes'] = options['notes'].to_s if options.has_key?('notes')
      add_user_pw_template['port']  = options['port'].to_i  if options.has_key?('port')

      softlayer_client[:Software_Component_Password].createObject(add_user_pw_template)

      @passwords = nil
    end
Adds specified username/password combination to current software instance