catch (NullPointerException e) { getCGError("there's no value for " + cgClassID + " in the defaults table"); return null; }
    public ComponentCG getCGInstance(String cgClassID) {        try {            String className = (String)get(cgClassID);            ComponentCG instance = (ComponentCG)get(className);            if (instance == null) {		Class cgClass = Class.forName(className);                if (cgClass != null) {		    instance = (ComponentCG)cgClass.newInstance();                    // Save shared instance for future use                    put(className, instance);                }            }            return instance;        } 	catch (ClassNotFoundException e) {            getCGError("no ComponentCG class for: " + cgClassID);            return null;        } 	catch (ClassCastException e) {            getCGError("ComponentCG class for: " + cgClassID + " does not implement the ComponentCG interface");            return null;        }	catch (InstantiationException e) {	    getCGError("instantiation of shared instance failed for " + cgClassID + " " + e);            return null;        }	catch (IllegalAccessException e) {            getCGError("Constructor of ComponentCG class for: " + cgClassID + " is not accessible");            return null;        }    }