@Override public InternalEndpointRoute addQueryParameters(Class<? extends ParameterProvider> clazz) { try { ParameterProvider provider = clazz.newInstance(); parameters.putAll(provider.getRAMLParameters()); } catch (InstantiationException | IllegalAccessException e) { e.printStackTrace(); } return this; }