code: function parsePath(value){
    if (!Array.isArray(value))
      value = String(value || '').trim().split(/\s+/);
  
    return value.map(function(part){
      if (typeof part == 'string')
        return parseRole(part);
  
      return part || {
        role: '',
        roleId: '',
        subrole: ''
      };
    });
  }
docs: Parses a string or a list to a list of role objects.
  Private except for tests.
  @param {string|Array.<string>} value
  @return {Array.<RoleObject>}