* @param tags
* @param retry
* @return
*/
public Community createCommunity(String title, String type, String content, ArrayList<String> tags, boolean retry) {
Community community = null;
try {
CommunityService communityService = new CommunityService();
long start = System.currentTimeMillis();
community = new Community(communityService, "");
community.setTitle("Test Community 1ab" + System.currentTimeMillis());
community.setContent("");
community.setCommunityType("public");
community.setTags(tags);
community = community.save();
long duration = System.currentTimeMillis() - start;
Trace.log("Created test community: "+community.getCommunityUuid() + " took "+duration+"(ms)");
} catch (ClientServicesException e) {
System.out.println("Grid Setup Error: cannot create community");
fail("Error creating test community", e);
}