agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/model/scripts/CondorSubmitScript.java
/**
     * Determines whether or not the given {@code condorDirective} is 
     * provided in the {@link BatchQueue#getCustomDirectives}.
     * 
     * @param condorDirective
     * @return true of an assignment is made to the {@code condorDirective}, false otherwise. 
     */
Determines whether or not the given  condorDirective is
provided in the  BatchQueue#getCustomDirectives.

@param condorDirective
@return true of an assignment is made to the  condorDirective, false otherwise.
Determines whether or not the given condorDirective is provided in the BatchQueue#getCustomDirectives . @param condorDirective @return true of an assignment is made to the condorDirective false otherwise .
protected boolean isInCustomDirectives(String condorDirective) {
    	if (StringUtils.isEmpty(condorDirective)) {
    		return false;
    	}
    	if (StringUtils.isEmpty(queue.getCustomDirectives())) {
    		return false;
    	}
    	Pattern pattern = Pattern.compile(condorDirective + "(?:\\s)*=");
    	Matcher matcher = pattern.matcher(queue.getCustomDirectives());
    	return matcher.find();
    }
protected boolean isInCustomDirectives ( String condorDirective ) { if ( StringUtils . isEmpty ( condorDirective ) ) { return false ; } if ( StringUtils . isEmpty ( queue . getCustomDirectives ( ) ) ) { return false ; } Pattern pattern = Pattern . compile ( condorDirective + "(?:\\s)*=" ) ; Matcher matcher = pattern . matcher ( queue . getCustomDirectives ( ) ) ; return matcher . find ( ) ; }
Determines whether or not the given {@code condorDirective} is
 provided in the {@link BatchQueue#getCustomDirectives}.
Determines whether or not the given { @code condorDirective } is provided in the { @link BatchQueue#getCustomDirectives } .