* @param ee Engine executor that called this method
* @throws OpenBPException On error
*/
public void executeModelObject(ModelObject mo, EngineExecutor ee)
{
TokenContext context = ee.getTokenContext();
NodeSocket entrySocket = context.getCurrentSocket();
ActivityNode node = (ActivityNode) entrySocket.getNode();
NodeSocket nextSocket = node.getDefaultExitSocket();
// Activity reference missing, try the node's handler
TokenContext oldContext = context;
HandlerContext hc = getEngine().executeHandler(node.getActivityHandlerDefinition(), HandlerTypes.ACTIVITY, context, context.getCurrentSocket(), nextSocket);
if (hc != null)
{
context = hc.getTokenContext();
if (context != oldContext)