code: public static boolean same(String groupA, String groupB)
      {
          final boolean result;
          if (groupA != null && groupB != null)
          {
              result = groupA.equals(groupB);
          }
          else if (groupA == null && groupB == null)
          {
              result = true;
          }
          else
          {
              result = false;
          }
          return result;
      }
docs: Check if tiles groups are same.
  
  @param groupA The first group.
  @param groupB The second group.
  @return <code>true</code> if groups are same (<code>null</code> included).