private boolean dimensionalPropertyPresented(IOpenMethod m) {
   List<TablePropertyDefinition> dimensionalPropertiesDef =
       TablePropertyDefinitionUtils.getDimensionalTableProperties();
   ITableProperties propertiesFromMethod = PropertiesHelper.getTableProperties(m);
   for (TablePropertyDefinition dimensionProperty : dimensionalPropertiesDef) {
     String propertyValue =
         propertiesFromMethod.getPropertyValueAsString(dimensionProperty.getName());
     if (StringUtils.isNotEmpty(propertyValue)) {
       return true;
     }
   }
   return false;
 }
  @SuppressWarnings({"unchecked", "rawtypes"})
  public IDomainAdaptor getGatheredDomain() {
    IDomainAdaptor result = null;
    if (!arrayEnumProperties.isEmpty()) {
      Class<?> propertyType =
          TablePropertyDefinitionUtils.getPropertyTypeByPropertyName(propertyToSearch);
      Class<?> componentType = propertyType.getComponentType();

      Object[] resultArray =
          (Object[]) Array.newInstance(componentType, arrayEnumProperties.size());

      EnumDomain enumDomain = new EnumDomain(arrayEnumProperties.toArray(resultArray));
      result = new EnumDomainAdaptor(enumDomain);
    } else {
      // all values from enum will be used as domain.
    }
    return result;
  }