src/main/java/js/net/HttpRmiServlet.java
private static ManagedClassSPI getManagedClass(ContainerSPI container, String interfaceName, String requestURI) throws ClassNotFoundException {
		Class<?> interfaceClass = Classes.forOptionalName(interfaceName);
		if (interfaceClass == null) {
			log.error("HTTP-RMI request for not existing class |%s|.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		ManagedClassSPI managedClass = container.getManagedClass(interfaceClass);
		if (managedClass == null) {
			log.error("HTTP-RMI request for not existing managed class |%s|.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		if (!managedClass.isRemotelyAccessible()) {
			log.error("HTTP-RMI request for local managed class |%s|. See @Remote annotation.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		return managedClass;
	}
private static ManagedClassSPI getManagedClass(ContainerSPI container, String interfaceName, String requestURI) throws ClassNotFoundException {
		Class<?> interfaceClass = Classes.forOptionalName(interfaceName);
		if (interfaceClass == null) {
			log.error("HTTP-RMI request for not existing class |%s|.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		ManagedClassSPI managedClass = container.getManagedClass(interfaceClass);
		if (managedClass == null) {
			log.error("HTTP-RMI request for not existing managed class |%s|.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		if (!managedClass.isRemotelyAccessible()) {
			log.error("HTTP-RMI request for local managed class |%s|. See @Remote annotation.", interfaceName);
			throw new ClassNotFoundException(requestURI);
		}
		return managedClass;
	}
Get remotely accessible managed class registered to a certain interface class.

@param container parent container,
@param interfaceName name of the interface class identifying requested managed class,
@param requestURI request URI for logging.
@return managed class, never null.
@throws ClassNotFoundException if interface class not found on run-time class path, managed class not defined or is not
remotely accessible.