fixes#2754 improve invokeOnPartitions() method
create method for Partition Set
Hibernate 2nd Level Cache section improvements

reviewed and enhanced.
Merge pull request #2756 from hasancelik/fixes#2754

fixes#2754
Cleaned most of the checkstyle errors on complexity but this thing definitely needs to be rewritten
Removed parameter non-reassignment rule
Fixed unittest failure