engine.setPackageBuilder(new EnginePackageBuilder() {
@Override
public void createFolderAndCopyProcessFilesToTarget(BPELProcess process) {
super.createFolderAndCopyProcessFilesToTarget(process);
CoreBPEL coreBPEL = new CoreBPEL(process.getTargetTmpPath(), process.getTargetProcessFilePath());
try {
coreBPEL.toCoreBPEL(transformations);
} catch (IOException | TransformerException e) {
throw new RuntimeException("Error during corebpel transformation", e);
}
}