}
final Set startingSet = new HashSet();
startingSet.addAll( java.util.Arrays.asList( candidates ) );
final ObjectNameQueryImpl query = new ObjectNameQueryImpl();
final Set resultSet = query.matchAll( startingSet, regexNames, regexValues );
final ObjectName [] results = new ObjectName [ resultSet.size() ];
resultSet.toArray( results );