code: public static JRDesignGroup getJRDesignGroup(DynamicJasperDesign jd, LayoutManager layoutManager, DJGroup group) {
  		Map references = layoutManager.getReferencesMap();
  		for (Object o : references.keySet()) {
  			String groupName = (String) o;
  			DJGroup djGroup = (DJGroup) references.get(groupName);
  			if (group == djGroup) {
  				return (JRDesignGroup) jd.getGroupsMap().get(groupName);
  			}
  		}
  		return null;
  	}
docs: Returns the JRDesignGroup for the DJGroup passed
  @param jd
  @param layoutManager
  @param group
  @return