code: function (response, type) {
  		'use strict';
  		let directives = response.response.directives;
  		if (directives) {
  			for (let i = 0; i < directives.length; i++) {
  				if (directives[i].type === type) {
  					return directives[i];
  				}
  			}
  		}
  		return undefined;
  	}
docs: Internal method.