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