return sn;
}
private static WorkItemTransferNode createWorkItemTransfernode(WorkItemNode node) {
WorkItemTransferNode tn = new WorkItemTransferNode();
Work work = node.getWork();
if ( work != null ) {
tn.setWorkName( work.getName() );
for ( String key : work.getParameters().keySet() ) {
Object o = work.getParameters().get( key );
String value;
if ( o == null ) {
value = "";
} else {
value = o.toString();
}
tn.getParameters().put( key,
value );
}
}
return tn;