@SuppressWarnings("unchecked")
public Map<String, Object> getParameters(Class clazz) {
Map<String, Object> params = new HashMap<String, Object>();
Annotation annotation = clazz.getAnnotation(Service.class);
if (annotation instanceof Service) {
Service service = (Service) annotation;
params.put("syncMode", service.synchronizeMode());
} else {
// unexpected case... but handle it nevertheless
params.put("syncMode", SyncMode.UPDATE);
_log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
}