public static void setRootLocator(RootLocator c) throws Exception {
public synchronized static void setRootLocator(RootLocator c) throws Exception {
    public static void setRootLocator(RootLocator c) throws Exception {        if (rootLocator != null) {            throw new Exception("Root locator already set");        }        rootLocator = c;    }