api/src/main/java/com/epam/pipeline/manager/cluster/InstanceOfferManager.java
public boolean isToolInstanceAllowedInAnyRegion(final String instanceType,
                                                    final ContextualPreferenceExternalResource toolResource) {
        return isInstanceTypeAllowed(instanceType, toolResource, null, TOOL_INSTANCE_TYPES_PREFERENCES, false)
                || isInstanceTypeAllowed(instanceType, toolResource, null, TOOL_INSTANCE_TYPES_PREFERENCES, true);
    }
/**
     * Checks if the given tool instance type is allowed for the authorized user and the requested tool
     * in any of the existing regions.
     *
     * Also checks if the instance type is one of the offered instance types.
     *
     * @param instanceType To be checked.
     * @param toolResource Optional tool resource.
     */
Checks if the given tool instance type is allowed for the authorized user and the requested tool
in any of the existing regions.

Also checks if the instance type is one of the offered instance types.

@param instanceType To be checked.
@param toolResource Optional tool resource.
Checks if the given tool instance type is allowed for the authorized user and the requested tool in any of the existing regions . Also checks if the instance type is one of the offered instance types . @param instanceType To be checked . @param toolResource Optional tool resource .
public boolean isToolInstanceAllowedInAnyRegion(final String instanceType,
                                                    final ContextualPreferenceExternalResource toolResource) {
        return isInstanceTypeAllowed(instanceType, toolResource, null, TOOL_INSTANCE_TYPES_PREFERENCES, false)
                || isInstanceTypeAllowed(instanceType, toolResource, null, TOOL_INSTANCE_TYPES_PREFERENCES, true);
    }
public boolean isToolInstanceAllowedInAnyRegion ( final String instanceType , final ContextualPreferenceExternalResource toolResource ) { return isInstanceTypeAllowed ( instanceType , toolResource , null , TOOL_INSTANCE_TYPES_PREFERENCES , false ) || isInstanceTypeAllowed ( instanceType , toolResource , null , TOOL_INSTANCE_TYPES_PREFERENCES , true ) ; }
Checks if the given tool instance type is allowed for the authorized user and the requested tool
 in any of the existing regions.
Checks if the given tool instance type is allowed for the authorized user and the requested tool in any of the existing regions .