code: public List<Space> getSpaces()
  	{
          Builder newQueryBuilder = SpacesQuery.newQuery();
          newQueryBuilder.withSpaceType(SpaceType.GLOBAL);
          SpacesQuery globalSpaceQuery = newQueryBuilder.build();
          return gpUtil.getSpaceManager().getAllSpaces(globalSpaceQuery);
  	}
docs: <p>getSpaces.</p>
  
  @return a {@link java.util.List} object.