ProcessorDescriptor pd1 = ProcessorDescriptor.create("processor1")
.setUserPayload(UserPayload.create(ByteBuffer.wrap("processor1Bytes".getBytes())));
Vertex v1 = Vertex.create("v1", pd1, 10, Resource.newInstance(1024, 1));
dag.addVertex(v1);
DAGAccessControls dagAccessControls = new DAGAccessControls();
dagAccessControls.setUsersWithViewACLs(Arrays.asList("u1"))
.setUsersWithModifyACLs(Arrays.asList("*"))
.setGroupsWithViewACLs(Arrays.asList("g1"))
.setGroupsWithModifyACLs(Arrays.asList("g2"));
dag.setAccessControls(dagAccessControls);