code: public boolean matches(String groupId, String artifactId) {
  		if (!"*".equals(this.groupId) && !this.groupId.equals(groupId))
  			return false;
  		if (!"*".equals(this.artifactId) && !this.artifactId.equals(artifactId))
  			return false;
  		return true;
  	}
docs: Check the artifact referenced by this instance matches the given group and artifact id.
  @param groupId group id
  @param artifactId artifact id
  @return true if it matches