code: static OpenElementTag asEngineOpenElementTag(final IOpenElementTag openElementTag) {
  
          if (openElementTag instanceof OpenElementTag) {
              return (OpenElementTag) openElementTag;
          }
  
  
          final IAttribute[] originalAttributeArray = openElementTag.getAllAttributes();
  
          final Attributes attributes;
          if (originalAttributeArray == null || originalAttributeArray.length == 0) {
              attributes = null;
          } else {
              // We will perform a deep cloning of the attributes into objects of the Attribute class, so that
              // we make sure absolutely all Attributes in the new event are under the engine's control
              final Attribute[] newAttributeArray = new Attribute[originalAttributeArray.length];
              for (int i = 0; i < originalAttributeArray.length; i++) {
                  final IAttribute originalAttribute = originalAttributeArray[i];
                  newAttributeArray[i] =
                          new Attribute(
                                  originalAttribute.getAttributeDefinition(), originalAttribute.getAttributeCompleteName(),
                                  originalAttribute.getOperator(), originalAttribute.getValue(), originalAttribute.getValueQuotes(),
                                  originalAttribute.getTemplateName(), originalAttribute.getLine(), originalAttribute.getCol());
              }
              final String[] newInnerWhiteSpaces;
              if (newAttributeArray.length == 1) {
                  newInnerWhiteSpaces = Attributes.DEFAULT_WHITE_SPACE_ARRAY;
              } else {
                  newInnerWhiteSpaces = new String[newAttributeArray.length];
                  Arrays.fill(newInnerWhiteSpaces, Attributes.DEFAULT_WHITE_SPACE);
              }
              attributes = new Attributes(newAttributeArray, newInnerWhiteSpaces);
          }
  
          return new OpenElementTag(
                  openElementTag.getTemplateMode(), openElementTag.getElementDefinition(), openElementTag.getElementCompleteName(),
                  attributes, openElementTag.isSynthetic(),
                  openElementTag.getTemplateName(), openElementTag.getLine(), openElementTag.getCol());
  
      }
docs: Meant to be called only from within the engine