private Object loadMethod(final int classID) throws Exception {
    Object loadMethod = loadMethods.get(classID) ;
    if (loadMethod == null) {
      final String className = LoadService.readString(in) ;
      final Class loadClass = Class.forName(className) ;
      
      try { loadMethod = loadClass.getConstructor(Session.class) ; }
      catch (NoSuchMethodException e) {}
      if (loadMethod == null) try {
        loadMethod = loadClass.getMethod("loadConstant", Session.class) ;
      }
      catch (NoSuchMethodException e) {
        I.complain("NO SUITABLE LOADING METHOD FOR "+className) ;
      }
      loadMethods.put(classID, loadMethod) ;
    }
    return loadMethod ;
  }