Source:
public DeleteResults<T> executeAsBlocking() { try { final StorIOContentResolver.LowLevel lowLevel = storIOContentResolver.lowLevel(); final List<SimpleImmutableEntry> objectsAndDeleteResolvers; if (explicitDeleteResolver != null) { objectsAndDeleteResolvers = null; } else { objectsAndDeleteResolvers = new ArrayList<SimpleImmutableEntry>(objects.size()); for (final T object : objects) { final ContentResolverTypeMapping<T> typeMapping = (ContentResolverTypeMapping<T>) lowLevel.typeMapping(object.getClass()); if (typeMapping == null) { throw new IllegalStateException("One of the objects from the collection does not have type mapping: " + "object = " + object + ", object.class = " + object.getClass() + "," + "ContentProvider was not affected by this operation, please add type mapping for this type"); } objectsAndDeleteResolvers.add(new SimpleImmutableEntry( object, typeMapping.deleteResolver() )); } } final Map<T, DeleteResult> results = new HashMap<T, DeleteResult>(objects.size()); if (explicitDeleteResolver != null) { for (final T object : objects) { final DeleteResult deleteResult = explicitDeleteResolver.performDelete(storIOContentResolver, object); results.put(object, deleteResult); } } else if (objectsAndDeleteResolvers != null) { for (final SimpleImmutableEntry<T, DeleteResolver<T>> objectAndDeleteResolver : objectsAndDeleteResolvers) { final T object = objectAndDeleteResolver.getKey(); final DeleteResolver<T> deleteResolver = objectAndDeleteResolver.getValue(); final DeleteResult deleteResult = deleteResolver.performDelete(storIOContentResolver, object); results.put(object, deleteResult); } } return DeleteResults.newInstance(results); } catch (Exception exception) { throw new StorIOException("Error has occurred during Delete operation. objects = " + objects, exception); } }

Target:
public DeleteResults<T> executeAsBlocking() { try { final StorIOContentResolver.LowLevel lowLevel = storIOContentResolver.lowLevel(); final List<SimpleImmutableEntry> objectsAndDeleteResolvers; if (explicitDeleteResolver != null) { objectsAndDeleteResolvers = null; } else { objectsAndDeleteResolvers = new ArrayList<SimpleImmutableEntry>(objects.size()); for (final T object : objects) { final ContentResolverTypeMapping<T> typeMapping = (ContentResolverTypeMapping<T>) lowLevel.typeMapping(object.getClass()); if (typeMapping == null) { throw new IllegalStateException("One of the objects from the collection does not have type mapping: " + "object = " + object + ", object.class = " + object.getClass() + "," + "ContentProvider was not affected by this operation, please add type mapping for this type"); } objectsAndDeleteResolvers.add(new SimpleImmutableEntry( object, typeMapping.deleteResolver() )); } } final Map<T, DeleteResult> results = new HashMap<T, DeleteResult>(objects.size()); if (explicitDeleteResolver != null) { for (final T object : objects) { final DeleteResult deleteResult = explicitDeleteResolver.performDelete(storIOContentResolver, object); results.put(object, deleteResult); } } else { assert objectsAndDeleteResolvers != null; for (final SimpleImmutableEntry<T, DeleteResolver<T>> objectAndDeleteResolver : objectsAndDeleteResolvers) { final T object = objectAndDeleteResolver.getKey(); final DeleteResolver<T> deleteResolver = objectAndDeleteResolver.getValue(); final DeleteResult deleteResult = deleteResolver.performDelete(storIOContentResolver, object); results.put(object, deleteResult); } } return DeleteResults.newInstance(results); } catch (Exception exception) { throw new StorIOException("Error has occurred during Delete operation. objects = " + objects, exception); } }