class DefaultKeyProvider implements KeyProvider {

    @Override
    public String[] generateKeys(final Object[] keyObjects) {
        if (keyObjects == null || keyObjects.length < 1) {
            throw new InvalidParameterException("The key objects must be defined.");
        }

        final String[] results = new String[keyObjects.length];
        for (int i = 0; i < keyObjects.length; i++) {
            results[i] = generateKey(keyObjects[i]);
        }

        return results;
    }

}