code: public static CmsEntityAttributeWrapper[] arrayFromEntityAttributeList(List<CmsEntityAttribute> attributes) {
  
          CmsEntityAttributeWrapper[] result = new CmsEntityAttributeWrapper[attributes.size()];
          for (int i = 0; i < attributes.size(); i++) {
              result[i] = new CmsEntityAttributeWrapper(attributes.get(i));
          }
          return result;
      }
docs: Creates an array of entity attribute wrappers for a list of entity attributes.<p>
  
  @param attributes the list of attributes
  @return the array of attribute wrappers