_createPolicyObject(policies) {
    let object = {};
    object.name = policies[policies.length-1];
    object.parents = policies.slice(0, policies.length-1);
    object.children = [];
    this._policies.objects[object.name] = object;
    if (object.parents.length > 0) {
      this._createPolicyObject(object.parents);
    }
  }
/**
   * Create a policy object
   * @param policies
   * @private
   */
Create a policy object
@param policies
@private
Create a policy object @param policies @private
_createPolicyObject(policies) {
    let object = {};
    object.name = policies[policies.length-1];
    object.parents = policies.slice(0, policies.length-1);
    object.children = [];
    this._policies.objects[object.name] = object;
    if (object.parents.length > 0) {
      this._createPolicyObject(object.parents);
    }
  }
_createPolicyObject ( policies ) { let object = { } ; object . name = policies [ policies . length - 1 ] ; object . parents = policies . slice ( 0 , policies . length - 1 ) ; object . children = [ ] ; this . _policies . objects [ object . name ] = object ; if ( object . parents . length > 0 ) { this . _createPolicyObject ( object . parents ) ; } }
Create a policy object
 @param policies
 @private
Create a policy object @param policies @private