TestClient client = ic.getInstance();
Logger logger = client.getLogger();
SmartInterface smartProxy = client.getUnconstrainedProxy();
if (client instanceof SecureClient) {
try{
ClientSubject clientSubject = (ClientSubject) ServerContext
.getServerContextElement(ClientSubject.class);
if (clientSubject!=null) {
Subject subject = clientSubject.getClientSubject();
((SecureClient)client).setTestClientSubject(subject);
}
} catch (ServerNotActiveException e) {
e.printStackTrace();