protected SharkConnection connect(String username) throws Exception {
SharkConnection sConn = Shark.getInstance().getSharkConnection();
if (username == null) {
username = getWorkflowUserManager().getCurrentUsername();
}
WMConnectInfo wmconnInfo = new WMConnectInfo(username, username, "WorkflowManager", "");
sConn.connect(wmconnInfo);
return sConn;
}