private boolean checkForValidGroup(String partToCheck, String[] params) {
    DMPart part = getPart(partToCheck);
    if (part == null) {
      return false;
    }
    int i = 0;
    for (DMParam parm : part.params) {
      if (!(parm.kprmnm.equals(params[i++]))) {
        return false;
      }
    }
    return true;
  }
private boolean checkForValidGroup(String partToCheck, String[] params) {
    DMPart part = getPart(partToCheck);
    if (part == null) {
      return false;
    }
    int i = 0;
    for (DMParam parm : part.params) {
      if (!(parm.kprmnm.equals(params[i++]))) {
        return false;
      }
    }
    return true;
  }
private boolean checkForValidGroup ( String partToCheck , String [ ] params ) { DMPart part = getPart ( partToCheck ) ; if ( part == null ) { return false ; } int i = 0 ; for ( DMParam parm : part . params ) { if ( ! ( parm . kprmnm . equals ( params [ i ++ ] ) ) ) { return false ; } } return true ; }
Check for valid groups

@param partToCheck the part name
@param params      the parameters that are supposed to be there
@return true if the part is there and has the right params
Check for valid groups