class EnvHomeRegistry {

    public synchronized void registerHome(final File home) throws StoreException
    {
        if (home == null)
        {
            throw new IllegalArgumentException("home parameter cannot be null");
        }

        String canonicalForm = getCanonicalForm(home);
        if (_canonicalNames.contains(canonicalForm))
        {
            throw new IllegalArgumentException("JE Home " + home + " is already in use");
        }
        _canonicalNames.add(canonicalForm);
    }

      EnvHomeRegistry();

}