private QueryExp buildQueryExp(final String pidAttribute,final String[] attributes,final Object[] values){
  final QueryExp optionalAttributes=buildOptionalQueryExp(attributes,values);
  QueryExp constraint;
  if (optionalAttributes != null) {
    constraint=Query.and(optionalAttributes,Query.eq(Query.attr(pidAttribute),Query.value(this.pid)));
  }
 else {
    constraint=Query.eq(Query.attr(pidAttribute),Query.value(this.pid));
  }
  return constraint;
}

private QueryExp buildQueryExp ( final String pidAttribute , final String [ ] attributes , final Object [ ] values ) { final QueryExp optionalAttributes = buildOptionalQueryExp ( attributes , values ) ; QueryExp constraint ; if ( optionalAttributes != null ) { constraint = Query . and ( optionalAttributes , Query . eq ( Query . attr ( pidAttribute ) , Query . value ( this . pid ) ) ) ; } else { constraint = Query . eq ( Query . attr ( pidAttribute ) , Query . value ( this . pid ) ) ; } return constraint ; }
builds the queryexp used to identify the target mbean .
