リポジトリーからコミュニティー・オブジェクトを取得するには、RAMSession.getCommunity(String name) または RAMSession.getCommunity(int communityId) を使用します。
//Fetch community by name
RAMCommunity community = session.getCommunity("My Community");
//Fetch community by database id
community = session.getCommunity(25);
//Fetch all communities
RAMCommunity[] communities = session.getAllCommunities();