public void saveDesignToServer(final ProcessDefinition definition, final SaveDialogInfo saveDialogInfo) throws UEngineException{
final ProgressDialog progDlg = new ProgressDialog("deploy..."){
public void run() throws Exception{
Serializer se = GlobalContext.getSerializer("XPD");
ProcessDefinition def = definition;
def.setName(saveDialogInfo.getName());
def.setAlias(saveDialogInfo.getAlias());
def.setVersion(saveDialogInfo.getVersion());
saveDialogInfo.getAuthor().setVersion(saveDialogInfo.getVersion());
RevisionInfo revInfo = saveDialogInfo.getAuthor();
def.addRevisionInfo(revInfo);
setRevisionInfo((RevisionInfo)revInfo.clone());
ByteArrayOutputStream bao = new ByteArrayOutputStream();
se.serialize(def, bao, null);
String strDef = bao.toString("UTF-8");
System.out.println("getSavingFolder() : " + getSavingFolder());