class SpecialResourceTypesRequiredParametersUtil {

    public static void checkRequiredParameters(String serviceName, ResourceType resourceType, Map<String, Object> parameters) {
        Set<String> requiredParameters = resourceType.getRequiredParameters();
        for (String parameter : requiredParameters) {
            if (!parameters.containsKey(parameter)) {
                throw new ContentException(Messages.SERVICE_MISSING_REQUIRED_PARAMETER, serviceName, parameter);
            }
        }
    }

    private  SpecialResourceTypesRequiredParametersUtil();

}