}
// Last try: guessed name prefix only
return (Class<? extends C>) Class.forName(restrictionClass.getPackage().getName() + "." + value);
}
catch(ClassNotFoundException e) {
throw new WrongParameterValueException(this, value, "Given class \"" + value + "\" not found.", e);
}
}
throw new WrongParameterValueException(this, obj.toString(), "Class not found for given value. Must be a subclass / implementation of " + restrictionClass.getName());
}