protected ContextServiceRemote getBean(String username, String password) throws Exception {
InitialContext ctx = getInitialContext(username, password);
String beanName = getRemoteBeanName();
System.out.println("Using: " + beanName);
ContextServiceRemote bean = (ContextServiceRemote)ctx.lookup(beanName);
return bean;
}