private static Resource createUserWorkflow(User_Workflow o) {
UserWorkflowResource userWorkflowResource = new UserWorkflowResource();
userWorkflowResource.setName(o.getTemplate_name());
GatewayResource gatewayResource = (GatewayResource)createGateway(o.getGateway());
userWorkflowResource.setGateway(gatewayResource);
Gateway_Worker gateway_worker = new Gateway_Worker();
gateway_worker.setGateway(o.getGateway());
gateway_worker.setUser(o.getUser());
WorkerResource workerResource = (WorkerResource) createGatewayWorker(gateway_worker);
userWorkflowResource.setWorker(workerResource);
userWorkflowResource.setLastUpdateDate(o.getLast_updated_date());
userWorkflowResource.setContent(new String(o.getWorkflow_graph()));
userWorkflowResource.setPath(o.getPath());