@SuppressWarnings("unchecked")
    private void loadTypes(HGHandleFactory handleFactory, ArrayList<String> L)
    {
        for (String line : L)
        {
            String [] A = line.split("\\s+");
            HGPersistentHandle handle = handleFactory.makeHandle(A[0]);
            String typeClassName = A[1];
            Class<? extends HGAtomType> typeClass = null; 
            try
            {
                typeClass = (Class<? extends HGAtomType>) Class.forName(typeClassName);
                handleToImpl.add(handle, typeClass);
            }
            catch (Exception ex)
            {
                System.err.println("[HYPERGRAPHDB WARNING]: unable to load type class '" + 
                        typeClassName + "'");
            }
            ArrayList<Class<?>> targets = new ArrayList<Class<?>>();
            handleToTargets.put(handle, targets);
            for (int i = 2; i < A.length; i++)
            {
                Class<?> cl = null; 
                try
                {
                    cl = Class.forName(A[i]);
                    targets.add(cl);
                }
                catch (Exception ex)
                {
                    System.err.println("[HYPERGRAPHDB WARNING]: unable to load class '" + 
                            A[i] + "' for HG type " + "'" + typeClassName + "'");
                }
            }
        }
    }