code: protected static CmsEntity createDefaultValueEntity(
          CmsType entityType,
          Map<String, CmsType> entityTypes,
          Map<String, CmsAttributeConfiguration> attributeConfigurations) {
  
          CmsEntity result = new CmsEntity(null, entityType.getId());
          for (String attributeName : entityType.getAttributeNames()) {
              CmsType attributeType = entityTypes.get(entityType.getAttributeTypeName(attributeName));
              for (int i = 0; i < entityType.getAttributeMinOccurrence(attributeName); i++) {
                  if (attributeType.isSimpleType()) {
                      result.addAttributeValue(
                          attributeName,
                          attributeConfigurations.get(attributeName).getDefaultValue());
                  } else {
                      result.addAttributeValue(
                          attributeName,
                          createDefaultValueEntity(attributeType, entityTypes, attributeConfigurations));
                  }
              }
          }
          return result;
      }
docs: Creates an entity object containing the default values configured for it's type.<p>
  
  @param entityType the entity type
  @param entityTypes the entity types
  @param attributeConfigurations the attribute configurations
  
  @return the created entity