Should you check `.endswith(g.getName())`? I find Jclouds prepends 'jclouds#' to the names of security groups it creates.