throw ScenarioBoundValueException.current(onMemberBinding, "(not usable)");
}
}
public void ensureAvailableForDeploymentType(final CellBinding onMemberBinding, final ScenarioCell onMemberCell) throws ScenarioBoundValueException {
final DeploymentType deploymentType = this.peer.getDeploymentType();
final boolean isExploration = objectMember.getFacet(ExplorationFacet.class) != null;
if (isExploration && !deploymentType.isExploring()) {
throw ScenarioBoundValueException.current(onMemberBinding, "(not running in exploration mode)");
}
final boolean isPrototype = objectMember.getFacet(PrototypeFacet.class) != null;
if (isPrototype && !deploymentType.isPrototyping()) {
throw ScenarioBoundValueException.current(onMemberBinding, "(not running in prototype mode)");
}
}