code: private PostCreateAction listenForLibraryChanges(final String libid) {
          return new PostCreateAction() {
              @Override
              public void invoke(AppClassLoader acl) {
                  listenForLibraryChanges(libid, acl);
              }
          };
      }
docs: create an action that will create a listener when invoked