public Attribute convertToArray() {
        Attribute result = clone();
        result.collectionType = CollectionType.ARRAY;
        return result;
    }
Creates an attribute with default settings
config-model/src/main/java/com/yahoo/schema/document/Attribute.java