private void convertFlowsInto( final YFlow flow, final BasicShape incomingShape, final BasicShape outgoingShape, final YNet net) throws JSONException, ConversionException { if (incomingShape.hasProperty("flowsinto") && !incomingShape.getProperty("flowsinto").isEmpty()) { JSONObject flowsInto = lookUpFlowsInto(outgoingShape.getProperty("yawlid"), incomingShape, net); if (flowsInto.has("ordering")) { flow.setEvalOrdering(flowsInto.getInt("ordering")); } if (flowsInto.has("isdefault")) { flow.setIsDefaultFlow(flowsInto.getBoolean("isdefault")); } if (flowsInto.has("predicate")) { flow.setXpathPredicate(flowsInto.getString("predicate")); } } }