public void afterHotSwap(Class<?> clazz) {
    List<Class<?>> myClasses = getPageClasses();
    for (Class<?> myClazz : myClasses) {
      if (clazz.isAssignableFrom(myClazz)) {
        try {
          ApplicationFactory.updateClassMetaInfo(this, clazz);
        } catch (InstantiationException e) {
          e.printStackTrace();
        } catch (IllegalAccessException e) {
          e.printStackTrace();
        }
        System.out.println("Nanorest: reconfigured class '" + clazz + "'.");
        break;
      }
    }
  }