ejb refactoring