class DbEnvironmentFactory {

    public DBEnvironment createEnvironmentInstance(String requestedEnv) {
        EnvironmentDescriptor descriptor = getEnvironmentDescriptor(requestedEnv);
        if (null == descriptor) {
            throw new IllegalArgumentException("DB Environment not supported:" + requestedEnv);
        }

        return descriptor.createEnvironmentInstance();
    }

    private  DbEnvironmentFactory();

}