}
public void read(final InputCapsule capsule) throws IOException {
final InputCapsule ic = capsule;
_enabled = ic.readBoolean("enabled", true);
final RenderState[] states = CapsuleUtils.asArray(ic.readSavableArray("passStates", null), RenderState.class);
_passStates.clear();
if (states != null) {
for (final RenderState state : states) {
_passStates.put(state.getType(), state);
}