/** * Finds the class with the specified <a href="#name">binary name</a>. * This method downloads the bytecode from a provider of the cluster view. * @param binaryName The <a href="#name">binary name</a> of the class * @return The resulting <tt>Class</tt> object * @throws ClassNotFoundException If the class could not be found */ @Override protected synchronized Class<?> findClass(final String binaryName) throws ClassNotFoundException { logger.debug("Downloading {0}...", binaryName); try { byte[] bytes = clientClusterViewManager.getBytecode(binaryName); return defineClass(binaryName, bytes, 0, bytes.length); } catch (ClientClusterViewManagerException e) { throw new ClassNotFoundException(); } }