Activity actTo = acts.getActivity(newTo);
if (actFrom == null || actTo == null) {
return false;
}
TransitionHandler th = JaWEManager.getInstance().getTransitionHandler();
List status = new ArrayList();
boolean ac = th.allowsConnection(actFrom, actTo, tra, isExcTra, status);
if (!ac) {
String errorMsg = "WarningSourceActivityCannotHaveMoreOutgoingTransitions";
if (((Integer) status.get(0)).intValue() == 2) {
errorMsg = "WarningTargetActivityCannotHaveMoreIncomingTransitions";