Factor duplicate code in the two overloads into a templated helper method.
Factor duplicate code in the two overloads into a templated helper method.

svn path=/trunk/kdesupport/akonadi/; revision=1105518

kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi