src/main/java/js/container/RemoteInstanceFactory.java
@SuppressWarnings("unchecked")
	@Override
	public <T> T newInstance(ManagedClassSPI managedClass, Object... args) {
		if (args.length > 0) {
			throw new IllegalArgumentException("REMOTE instance factory does not support arguments.");
		}
		return getRemoteInstance(managedClass.getImplementationURL(), (Class<? super T>) managedClass.getInterfaceClass());
	}
@SuppressWarnings("unchecked")
	@Override
	public <T> T newInstance(ManagedClassSPI managedClass, Object... args) {
		if (args.length > 0) {
			throw new IllegalArgumentException("REMOTE instance factory does not support arguments.");
		}
		return getRemoteInstance(managedClass.getImplementationURL(), (Class<? super T>) managedClass.getInterfaceClass());
	}
@ SuppressWarnings ( "unchecked" ) @ Override public < T > T newInstance ( ManagedClassSPI managedClass , Object ... args ) { if ( args . length > 0 ) { throw new IllegalArgumentException ( "REMOTE instance factory does not support arguments." ) ; } return getRemoteInstance ( managedClass . getImplementationURL ( ) , ( Class < ? super T > ) managedClass . getInterfaceClass ( ) ) ; }
Create a new instance for given remote managed class. Managed class should be declared as remote into class descriptor.
Also {@link ManagedClassSPI#getImplementationURL()} should be not null, that is, implementation URL should be present
into class descriptor. Returned value is a Java proxy that delegates a HTTP-RMI client.
<p>
This factory method does not check managed class argument validity. It should be not null and configured for remote
invocation.

@param managedClass managed class,
@param args remote instance factory does not support constructor arguments.
@param <T> managed instance type.
Create a new instance for given remote managed class . Managed class should be declared as remote into class descriptor . Also { @link ManagedClassSPI#getImplementationURL () } should be not null that is implementation URL should be present into class descriptor . Returned value is a Java proxy that delegates a HTTP - RMI client . <p > This factory method does not check managed class argument validity . It should be not null and configured for remote invocation .