class C3POAdaptor implements AdaptorPluginInterface {

	@Override
	public void setParameterValues(final Map<String, String> values)
			throws InvalidParameterException {
		final Set<String> keys = values.keySet();

		for (ConfigParameter cp : this.defaultConfig) {
			final String key = cp.getKey();
			if (cp.isRequired()
					&& (!keys.contains(key) || values.get(key) == null)) {
				throw new InvalidParameterException(
						"No value set for the required config parameter: "
								+ key);
			}
		}

		this.config = values;

	}

}