Transactional transaction =
adapter instanceof Transactional ?
(Transactional)adapter : null;
ResponseContext response = null;
try {
if (transaction != null) transaction.start(request);
if (type == TargetType.TYPE_CATEGORIES) {
if (method.equalsIgnoreCase("GET"))
response = adapter.getCategories(request);
} else if (type == TargetType.TYPE_COLLECTION) {
if (method.equalsIgnoreCase("GET"))