Extract Eclipselink functionality into a helper