class CustomElement {

    public void set(T value) {
        if (value != null && !value.equals(elementDefinition.getDefaultValue())) {
            elementDefinition.setValue(element, value);
        }
    }

    public  CustomElement(ElementDefinition<T> elementDefinition, BaseElement element);

}