{@inheritDoc}

@see jcifs.SmbResourceLocator#isWorkgroup()
480656
@Override
    public boolean isWorkgroup () throws CIFSException {
        if ( this.type == SmbConstants.TYPE_WORKGROUP || this.url.getHost().length() == 0 ) {
            this.type = SmbConstants.TYPE_WORKGROUP;
            return true;
        }

        if ( getShare() == null ) {
            NetbiosAddress addr = getAddress().unwrap(NetbiosAddress.class);
            if ( addr != null ) {
                int code = addr.getNameType();
                if ( code == 0x1d || code == 0x1b ) {
                    this.type = SmbConstants.TYPE_WORKGROUP;
                    return true;
                }
            }
            this.type = SmbConstants.TYPE_SERVER;
        }
        return false;
    }
847620
public void addWorkManager(org.ironjacamar.core.spi.workmanager.Address logicalAddress, org.jgroups.Address address)
   {
      super.localWorkManagerAdd(logicalAddress, address);
   }
1094981
public static boolean available(String groupName) {
        return LocalUnitsManager.getGroupByName(groupName) != null ||
                (GroupDiscovery.singleton != null && GroupDiscovery.singleton.firstInstance(groupName) != null);
    }
277583
@Override
    public boolean isValidGroup(String groupSecurityName) throws RegistryException {
        if (groupSecurityName == null) {
            throw new IllegalArgumentException("groupSecurityName is null");
        }
        if (groupSecurityName.isEmpty()) {
            throw new IllegalArgumentException("groupSecurityName is an empty String");
        }
        return false;
    }
56355
private void filterAnalyticsGroups(
            IGroupMember groupMember, JsonNode config, Map<String, Boolean> isMemberCache) {
        if (config == null) {
            return;
        }

        final JsonNode dimensionGroups = config.get("dimensionGroups");
        if (dimensionGroups == null) {
            return;
        }

        for (final Iterator<JsonNode> groupItr = dimensionGroups.elements(); groupItr.hasNext(); ) {
            final JsonNode group = groupItr.next();

            final JsonNode valueNode = group.get("value");
            if (valueNode == null) {
                continue;
            }

            final String groupName = valueNode.asText();

            Boolean isMember = isMemberCache.get(groupName);
            if (isMember == null) {
                isMember = isMember(groupMember, groupName);
                isMemberCache.put(groupName, isMember);
            }

            if (!isMember) {
                groupItr.remove();
            }
        }
    }
766784
public static final String printWorkGroup(WorkGroup value)
   {
      return (Integer.toString(value == null ? WorkGroup.DEFAULT.getValue() : value.getValue()));
   }
774981
public void addRoleForGroup(String groupName, String roleName) {
        if (workgroups==null) {
            workgroups = new Workgroup[1];
            workgroups[0] = new Workgroup(null, groupName, null);
        }
        List<String> roles = workgroups[0].getRoles();
        if (roles==null) {
            roles = new ArrayList<String>();
            workgroups[0].setRoles(roles);
        }
        roles.add(roleName);
    }
70618
private boolean isSameGroup(Node node) {
        return node.getNodeType().equals(appContext.getConfig().getNodeType())
                && node.getGroup().equals(appContext.getConfig().getNodeGroup());
    }
300015
public boolean isGroupStart()
    {
        if (getValue() == null || isCommand() || getValue().length() != 1)
            return false;
        return getValue().charAt(0) == '(' || getValue().charAt(0) == '[';
    }
1287439
@Override
	public Set<JobKey> getJobKeys(String group) throws SchedulerException {
		return scheduler.getJobKeys(GroupMatcher.jobGroupEquals(group));
	}
586093
boolean corralIfNeeded(Collection<Unit> working) {
        if (isRecoverable()
                && si.corralled() != null) {
            activeGuts = si.corralled();
            setWrap(working, working);
            return isAttemptingCorral = true;
        }
        return isAttemptingCorral = false;
    }
344519
public boolean pauseQuartzJob(String jobName, String jobGroupName) {
        try {
            this.scheduler.pauseJob(new JobKey(jobName, jobGroupName));
            return true;
        } catch (SchedulerException e) {
            logger.error("error pausing job: " + jobName + " in group: " + jobGroupName, e);
        }
        return false;
    }
1063543
public static boolean defined(String group) {
        return LocalUnitsManager.getGroupByName(group) != null ||
                (GroupDiscovery.singleton != null && GroupDiscovery.singleton.newestDefinition(group) != null);
    }
1137747
public boolean isWorkingDate(Date date)
   {
      Calendar cal = DateHelper.popCalendar(date);
      Day day = Day.getInstance(cal.get(Calendar.DAY_OF_WEEK));
      DateHelper.pushCalendar(cal);
      return isWorkingDate(date, day);
   }
748165
@Override
	public List<String> getJobGroups() throws SchedulerException {
		List<String> groups = scheduler.getJobGroupNames();
		Collections.sort(groups);
		return groups;
	}
21224
public boolean matches(TaskGroupInformation info) {
		return	getActivity().equals(info.getActivity()) &&
				getInputType().equals(info.getInputType()) &&
				getOutputType().equals(info.getOutputType()) &&
				info.matchesLocale(getLocale());
	}
876533
public function inGroup(GroupInterface $group)
	{
		foreach ($this->getGroups() as $_group)
		{
			if ($_group->getId() == $group->getId())
			{
				return true;
			}
		}

		return false;
	}