List<String> usableConfigurationTypes = new ArrayList<String>();
for (String ct : supportedConfigurationTypes) {
if (remoteConfigurationTypes.contains(ct)) {
usableConfigurationTypes.add(ct);
}
<BUG>}
if (usableConfigurationTypes.isEmpty()) {
throw new RuntimeException("The supplied endpoint has no compatible configuration type. "
+ "Supported types are: " + supportedConfigurationTypes
+ "    Types needed by the endpoint: " + remoteConfigurationTypes);
}</BUG>
return usableConfigurationTypes;

List<String> usableConfigurationTypes = new ArrayList<String>();
for (String ct : supportedConfigurationTypes) {
if (remoteConfigurationTypes.contains(ct)) {
usableConfigurationTypes.add(ct);
