Hashtable keyedContext = (Hashtable) options;
GraphActivity graph;
try {
graph = (GraphActivity) adapter.convert(activity, keyedContext);
SwimLaneCoordinate coordinate = new SwimLaneCoordinate();
graph = coordinate.traverse(graph, null, options);
if (coordinate.getRoleList().size() == 0) {
String viewOption = (String) options.get(ViewerOptions.SWIMLANE);
options.put(viewOption, viewOption);
} else {
SwimlaneViewer viewer = new SwimlaneViewer();
sb.append(viewer.render(graph, coordinate, instance, options));
sb.append("</div>");
sb.append(getScriptSourceForBegin(drawLinerNamespace));
sb = coordinate.appendCoordinateFunctionScript(instance , sb, options);
sb.append(getScriptSourceForEnd(drawLinerNamespace));
return sb;
}
} catch (Exception e) {