question: private Collection regionEntryCollection ( Object regionEntries ) { if ( regionEntries == null ) { return null ; } if ( regionEntries instanceof RegionEntry ) { return Collections . singleton ( regionEntries ) ; } return ( Collection ) regionEntries ; }
target:  Convert a RegionEntry or THashSet<RegionEntry> to be consistently a Collection