private Collection regionEntryCollection(Object regionEntries){
  if (regionEntries == null) {
    return null;
  }
  if (regionEntries instanceof RegionEntry) {
    return Collections.singleton(regionEntries);
  }
  return (Collection)regionEntries;
}

private Collection regionEntryCollection ( Object regionEntries ) { if ( regionEntries == null ) { return null ; } if ( regionEntries instanceof RegionEntry ) { return Collections . singleton ( regionEntries ) ; } return ( Collection ) regionEntries ; }
convert a regionentry or thashset < regionentry > to be consistently a collection
