code: public Set<Profile> getProfiles()
      {
          final Set<Profile> ret = new HashSet<Profile>();
          if (this.profileNames.isEmpty()) {
              ret.add(Profile.getDefaultProfile());
          } else {
              for (final String name : this.profileNames) {
                  ret.add(Profile.getProfile(name));
              }
          }
          return ret;
      }
docs: Get the profiles for this dependency. In case that there are no profiles
  defined in {@link #profileNames} it will return a set containing the
  default profile.
  
  @return profiles applied for this dependency