CopperMonitoringService monitoringService;
LoginService loginService;
RemoteInvocationExecutor remoteInvocationExecutor;
if(unsecure) {
monitoringService = CopperMonitorServiceDefaultProxy.getServiceProxy(copperMonitoringService);
loginService = new DefaultLoginService();
remoteInvocationExecutor = new DefaultRemoteInvocationExecutor();
} else {
monitoringService = CopperMonitorServiceSecurityProxy.secure(copperMonitoringService);
final SimpleAccountRealm realm = new SimpleAccountRealm();
realm.addAccount("user1", "pass1");