class BPMNElementDecorators {

    public static <T extends BaseElement> MarshallingMessageDecorator<T> baseElementDecorator() {
        return MarshallingMessageDecorator.of(BaseElement::getId,
                                              g -> g.getClass().getSimpleName());
    }

}