moved spring specific code from entity bean to service