Gets the built in policy definition.

@param policyDefinitionName The name of the built in policy definition to get.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PolicyDefinitionInner object
764786
public Observable<ServiceResponse<PolicyDefinitionInner>> getBuiltInWithServiceResponseAsync(String policyDefinitionName) {
        if (policyDefinitionName == null) {
            throw new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null.");
        }
        if (this.client.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
        }
        return service.getBuiltIn(policyDefinitionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<PolicyDefinitionInner>>>() {
                @Override
                public Observable<ServiceResponse<PolicyDefinitionInner>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<PolicyDefinitionInner> clientResponse = getBuiltInDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
562093
public static cachepolicy_cachepolicylabel_binding[] get(nitro_service service, String policyname) throws Exception{
		cachepolicy_cachepolicylabel_binding obj = new cachepolicy_cachepolicylabel_binding();
		obj.set_policyname(policyname);
		cachepolicy_cachepolicylabel_binding response[] = (cachepolicy_cachepolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
607109
public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
		cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding();
		obj.set_labelname(labelname);
		cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_binding[]) obj.get_resources(service);
		return response;
	}
663772
public static policymap[] get(nitro_service service, String mappolicyname[]) throws Exception{
		if (mappolicyname !=null && mappolicyname.length>0) {
			policymap response[] = new policymap[mappolicyname.length];
			policymap obj[] = new policymap[mappolicyname.length];
			for (int i=0;i<mappolicyname.length;i++) {
				obj[i] = new policymap();
				obj[i].set_mappolicyname(mappolicyname[i]);
				response[i] = (policymap) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
708078
public BeanDefinition getBeanDefinition(String name) {
		if(!getSpringConfig().containsBean(name))
			return null;
		return getSpringConfig().getBeanConfig(name).getBeanDefinition();
	}
812933
public static cachepolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
		cachepolicylabel_policybinding_binding obj = new cachepolicylabel_policybinding_binding();
		obj.set_labelname(labelname);
		cachepolicylabel_policybinding_binding response[] = (cachepolicylabel_policybinding_binding[]) obj.get_resources(service);
		return response;
	}
1209437
public static cachepolicy_binding[] get(nitro_service service, String policyname[]) throws Exception{
		if (policyname !=null && policyname.length>0) {
			cachepolicy_binding response[] = new cachepolicy_binding[policyname.length];
			cachepolicy_binding obj[] = new cachepolicy_binding[policyname.length];
			for (int i=0;i<policyname.length;i++) {
				obj[i] = new cachepolicy_binding();
				obj[i].set_policyname(policyname[i]);
				response[i] = (cachepolicy_binding) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
208157
public UndefineArgument[] getDefines() throws BuildException {
    if (isReference()) {
      final DefineSet defset = (DefineSet) getCheckedRef(DefineSet.class, "DefineSet");
      return defset.getDefines();
    } else {
      if (isActive()) {
        final UndefineArgument[] defs = new UndefineArgument[this.defineList.size()];
        this.defineList.copyInto(defs);
        return defs;
      } else {
        return new UndefineArgument[0];
      }
    }
  }
635674
public static authorizationpolicy_authorizationpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
		authorizationpolicy_authorizationpolicylabel_binding obj = new authorizationpolicy_authorizationpolicylabel_binding();
		obj.set_name(name);
		authorizationpolicy_authorizationpolicylabel_binding response[] = (authorizationpolicy_authorizationpolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
446589
public static transformpolicylabel_transformpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
		transformpolicylabel_transformpolicy_binding obj = new transformpolicylabel_transformpolicy_binding();
		obj.set_labelname(labelname);
		transformpolicylabel_transformpolicy_binding response[] = (transformpolicylabel_transformpolicy_binding[]) obj.get_resources(service);
		return response;
	}
472774
public static systemcmdpolicy get(nitro_service service, String policyname) throws Exception{
		systemcmdpolicy obj = new systemcmdpolicy();
		obj.set_policyname(policyname);
		systemcmdpolicy response = (systemcmdpolicy) obj.get_resource(service);
		return response;
	}
531955
public static cspolicy_binding get(nitro_service service, String policyname) throws Exception{
		cspolicy_binding obj = new cspolicy_binding();
		obj.set_policyname(policyname);
		cspolicy_binding response = (cspolicy_binding) obj.get_resource(service);
		return response;
	}
406989
public static responderpolicylabel get(nitro_service service, String labelname) throws Exception{
		responderpolicylabel obj = new responderpolicylabel();
		obj.set_labelname(labelname);
		responderpolicylabel response = (responderpolicylabel) obj.get_resource(service);
		return response;
	}
868583
public static service_dospolicy_binding[] get(nitro_service service, String name) throws Exception{
		service_dospolicy_binding obj = new service_dospolicy_binding();
		obj.set_name(name);
		service_dospolicy_binding response[] = (service_dospolicy_binding[]) obj.get_resources(service);
		return response;
	}
732966
public static rewritepolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
		rewritepolicylabel_policybinding_binding obj = new rewritepolicylabel_policybinding_binding();
		obj.set_labelname(labelname);
		rewritepolicylabel_policybinding_binding response[] = (rewritepolicylabel_policybinding_binding[]) obj.get_resources(service);
		return response;
	}
167135
public static transformpolicylabel_binding get(nitro_service service, String labelname) throws Exception{
		transformpolicylabel_binding obj = new transformpolicylabel_binding();
		obj.set_labelname(labelname);
		transformpolicylabel_binding response = (transformpolicylabel_binding) obj.get_resource(service);
		return response;
	}
36657
@Override
    public AbstractPolicy getPolicy(String name, PolicyFinder policyFinder) throws PolicyIndexException {
        readLock.lock();
        try {
            logger.debug("Getting policy named: " + name);
            if (policies.containsKey(name)) {
                return handleDocument(m_policyReader.readPolicy(policies.get(name)), policyFinder);
            } else {
                throw new PolicyIndexException("Attempting to get non-existent policy " + name);
            }
        } catch (ParsingException pe) {
            throw new PolicyIndexException(pe.getMessage(),pe);
        } finally {
            readLock.unlock();
        }
    }