public Worker(int beanId, ComplexEntityHome wHome, int loops) throws Exception {
this.loops = loops;
try {
bean = wHome.findByPrimaryKey(new AComplexPK(true, beanId, (long)0, (double)0, "empty"));
} catch (Exception e) {
bean = wHome.create(true, beanId, (long)0, (double)0, "empty");
}
}