code: private static byte getCombinationMask(Set<XmLepResourceSubType> scriptTypes,
                                             LepMethod lepMethod,
                                             UrlLepResourceKey compositeResourceKey) {
          byte combinationMask = 0;
          for (XmLepResourceSubType scriptType : scriptTypes) {
              switch (scriptType) {
                  case BEFORE:
                      combinationMask |= BEFORE_MASK;
                      break;
  
                  case AROUND:
                      combinationMask |= AROUND_MASK;
                      break;
  
                  case TENANT:
                      combinationMask |= TENANT_MASK;
                      break;
  
                  case DEFAULT:
                      combinationMask |= DEFAULT_MASK;
                      break;
  
                  case AFTER:
                      combinationMask |= AFTER_MASK;
                      break;
  
                  default:
                      throw new IllegalArgumentException("Unsupported script type: " + scriptType
                                                             + " for resource key: " + compositeResourceKey
                                                             + ", all script types: " + scriptTypes);
              }
          }
  
          if (lepMethod.getTarget() != null) {
              combinationMask |= JAVA_CODE_MASK;
          }
  
          return combinationMask;
  
      }
docs: Builds script combination mask.
  
  @param scriptTypes          current point script types
  @param lepMethod            executed LEP method
  @param compositeResourceKey used only for informative exception message
  @return available scripts mask for current LEP