private fun fetchRDFGroupFromCache( rdfGroupCache: MutableMap<URI, RemoteDirectorGroup>, srdfGroupURI: URI ): RemoteDirectorGroup? { if (rdfGroupCache.containsKey(srdfGroupURI)) { return rdfGroupCache[srdfGroupURI] } val rdfGroup: RemoteDirectorGroup = this.getDbClient().queryObject(RemoteDirectorGroup::class.java, srdfGroupURI) if (null != rdfGroup && !rdfGroup.getInactive()) { rdfGroupCache[srdfGroupURI] = rdfGroup } return rdfGroup }
Return the RemoteDirectorGroup from cache otherwise query from db .