@Override
    public void configure(final Object... keyValues) {
        if (keyValues[0].equals(PeerPressure.edges)) {
            if (!(keyValues[1] instanceof Traversal))
                throw new IllegalArgumentException("PeerPressure.edges requires a Traversal as its argument");
            this.edgeTraversal = new PureTraversal<>(((Traversal<Vertex,Edge>) keyValues[1]).asAdmin());
            this.integrateChild(this.edgeTraversal.get());
        } else if (keyValues[0].equals(PeerPressure.propertyName)) {
            if (!(keyValues[1] instanceof String))
                throw new IllegalArgumentException("PeerPressure.propertyName requires a String as its argument");
            this.clusterProperty = (String) keyValues[1];
        } else if (keyValues[0].equals(PeerPressure.times)) {
            if (!(keyValues[1] instanceof Integer))
                throw new IllegalArgumentException("PeerPressure.times requires an Integer as its argument");
            this.times = (int) keyValues[1];
        }else {
            this.parameters.set(this, keyValues);
        }
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/traversal/step/map/PeerPressureVertexProgramStep.java