BZ-1043877 - Project is able to build even if the invalid BPMN2 definition is present-refactored to be more generic