protected Transition createXPDLTransition(Transitions tras, String type) {
Transition tra = (Transition) tras.generateNewElement();
JaWETypes jts = JaWEManager.getInstance().getJaWEController().getJaWETypes();
boolean hasTemplate = jts.hasTemplateId(type);
if (hasTemplate) {
jts.fillFromTemplate(tra, type);
}
String id = tra.getId();
if (!hasTemplate || id.equals("") || tras.getTransition(id) != null) {
if (id.equals("")) {
id = JaWEManager.getInstance().getIdFactory().generateUniqueId(tras);