code: public static void validateScriptsCombination(Set<XmLepResourceSubType> scriptTypes,
                                                    LepMethod lepMethod,
                                                    UrlLepResourceKey compositeResourceKey) {
          byte mask = getCombinationMask(scriptTypes, lepMethod, compositeResourceKey);
  
          StringBuilder errors = new StringBuilder();
          if (isZero(mask, ZERO_PATTERN_NO_TENANT_AND_DEFAULT_AND_JAVA_CODE)) {
              errors.append(String.format("Has no one script of '%s', '%s' or native (java) implementation.",
                                          XmLepResourceSubType.TENANT, XmLepResourceSubType.DEFAULT));
          }
  
          if (isSetByPattern(mask, IS_SET_PATTERN_AROUND_AND_BEFORE)) {
              if (errors.length() > 0) {
                  errors.append(" ");
              }
  
              errors.append(String.format("Has '%s' script with '%s'.", XmLepResourceSubType.BEFORE, XmLepResourceSubType.AROUND));
          }
  
          if (isSetByPattern(mask, IS_SET_PATTERN_AROUND_AND_AFTER)) {
              if (errors.length() > 0) {
                  errors.append(" ");
              }
  
              errors.append(String.format("Has '%s' script with '%s'.", XmLepResourceSubType.AROUND, XmLepResourceSubType.AFTER));
          }
  
          if (isSetByPattern(mask, IS_SET_PATTERN_AROUND_AND_TENANT)) {
              if (errors.length() > 0) {
                  errors.append(" ");
              }
  
              errors.append(String.format("Unallowed combination '%s' and '%s' scripts.", XmLepResourceSubType.AROUND, XmLepResourceSubType.TENANT));
          }
  
          if (errors.length() > 0) {
              throw new IllegalArgumentException(String.format("Resource key %s has script combination errors. %s",
                                                               compositeResourceKey,
                                                               errors.toString()));
  
          }
      }
docs: Validate script combination.
  
  @param scriptTypes          current point script types
  @param lepMethod            executed LEP method
  @param compositeResourceKey used only for informative exception message