class ReplicatedEnvironmentFacade implements EnvironmentFacade, StateChangeListener {

    public String getNodeState()
    {
        if (_state.get() != State.OPEN)
        {
            return ReplicatedEnvironment.State.UNKNOWN.name();
        }

        try
        {
            ReplicatedEnvironment.State state = getEnvironment().getState();
            return state.toString();
        }
        catch (RuntimeException e)
        {
            throw handleDatabaseException("Cannot get environment state", e);
        }
    }

    public  ReplicatedEnvironmentFacade(ReplicatedEnvironmentConfiguration configuration);

}