api/src/main/java/com/epam/pipeline/manager/cluster/InstanceOfferManager.java
public boolean isToolInstanceAllowed(final String instanceType,
                                         final ContextualPreferenceExternalResource toolResource,
                                         final Long regionId,
                                         final boolean spot) {
        return isInstanceTypeAllowed(instanceType, toolResource, defaultRegionIfNull(regionId),
                TOOL_INSTANCE_TYPES_PREFERENCES, spot);
    }
/**
     * Checks if the given tool instance type is allowed for the authorized user and the requested tool
     * in the specified or default region.
     *
     * Also checks if the instance type is one of the offered instance types.
     *
     * @param instanceType To be checked.
     * @param toolResource Optional tool resource.
     * @param regionId If specified then instance types for the specified region will be used.
     */
Checks if the given tool instance type is allowed for the authorized user and the requested tool
in the specified or default region.

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

@param instanceType To be checked.
@param toolResource Optional tool resource.
@param regionId If specified then instance types for the specified region will be used.
Checks if the given tool instance type is allowed for the authorized user and the requested tool in the specified or default region . Also checks if the instance type is one of the offered instance types . @param instanceType To be checked . @param toolResource Optional tool resource . @param regionId If specified then instance types for the specified region will be used .
public boolean isToolInstanceAllowed(final String instanceType,
                                         final ContextualPreferenceExternalResource toolResource,
                                         final Long regionId,
                                         final boolean spot) {
        return isInstanceTypeAllowed(instanceType, toolResource, defaultRegionIfNull(regionId),
                TOOL_INSTANCE_TYPES_PREFERENCES, spot);
    }
public boolean isToolInstanceAllowed ( final String instanceType , final ContextualPreferenceExternalResource toolResource , final Long regionId , final boolean spot ) { return isInstanceTypeAllowed ( instanceType , toolResource , defaultRegionIfNull ( regionId ) , TOOL_INSTANCE_TYPES_PREFERENCES , spot ) ; }
Checks if the given tool instance type is allowed for the authorized user and the requested tool
 in the specified or default region.
Checks if the given tool instance type is allowed for the authorized user and the requested tool in the specified or default region .