private void deployVertices(final JobDescriptor job, final LocalPhysicalGraph pvGraph) throws IOException {
        Iterator<LocalVertex> iter = pvGraph.iteratorOfVertex();
        while (iter.hasNext()) {
            final LocalVertex pv = iter.next();
            if (pv instanceof LocalPhysicalVertex) {
                deployLogicalVertex(job, (LocalPhysicalVertex) pv);
            } else if (pv instanceof LocalSelectorVertex) {
                deploySelectorVertex(job, (LocalSelectorVertex) pv);
            } else {
                throw new RuntimeException("BUG: Illegal Vertex Type");
            }
        }
    }